stephy / CalendarPicker

CalendarPicker Component for React Native
802 stars 372 forks source link

error no demension set for key #68

Closed hungdev closed 6 years ago

hungdev commented 7 years ago

i run : npm install --save react-native-calendar-picker then react-native run-android, it says error like this

er

lsrepo commented 7 years ago

Same for me! Have you found a way to solve this yet?

peacechen commented 7 years ago

That looks like it's from Dimensions.get('window) on this line: https://github.com/stephy/CalendarPicker/blob/master/CalendarPicker/index.js#L53

That should be supported on Android. What version of RN are you using?

PR #73 could help as long as you supply width & height props to CalendarPicker. That avoids the call to Dimensions.