You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Easy to use and visually stunning calendar component for React Native.
4
4
5
-
`<CalendarStrip>` is a React Native component designed to replace the standard date picker component. It works for both `iOS`and`Android` and in both `portrait` and `landscape` orientations!
5
+
`<CalendarStrip>` is a React Native component designed to replace the standard date picker component. It supports `iOS`&`Android` and responsively sizes its height based on its container width. It gracefully resizes for `portrait` and `landscape` orientations and virtually all display resolutions.
@@ -120,6 +120,11 @@ This is the list of all the props you can pass to the component so that you can
120
120
121
121
###### Top level style
122
122
* style: PropTypes.any - Style for the top level CalendarStrip component
123
+
* innerStyle: PropTypes.any - Style for the responsively sized inner view. This is necessary to account for padding/margin from the top level view. The inner view has style `flex:1` by default. If this component is nested within another dynamically sized container, remove the flex style by passing in `[]`.
124
+
125
+
###### Responsive sizing
126
+
* maxDayComponentSize: PropTypes.number - (default 80) Maximum size that CalendarDay will responsively size up to.
127
+
* minDayComponentSize: PropTypes.number - (default 10) Minimum size that CalendarDay will responsively size down to.
123
128
124
129
###### Icon
125
130
* iconLeft: PropTypes.any - Icon to be used for the left icon. It accepts require statement with url to the image (`require('./img/icon.png')`), or object with remote uri `{uri: 'http://example.com/image.png'}`
0 commit comments