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
no matter what scenario I try, I keep getting this warning when trying to use customDatesStyles prop immediately after opening a modal containing react-native-persian-calendar-picker. the app functions as should. but the warning also persists.
[Tue Apr 13 2021 13:32:22.238] ERROR Warning: Failed prop type: Invalid prop customDatesStyles[0].datesupplied toDaysGridView. in DaysGridView (at src/index.js:373) in PersianCalendarPicker (at DatePickerModal.js:58) in RCTView (at View.js:34) in View (at DatePickerModal.js:57) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at createAnimatableComponent.js:599) in withAnimatable(View) (created by ReactNativeModal) in RCTView (at View.js:34) in View (at KeyboardAvoidingView.js:218) in KeyboardAvoidingView (created by ReactNativeModal) in RCTView (at View.js:34) in View (at AppContainer.js:106) in RCTView (at View.js:34) in View (at AppContainer.js:132) in AppContainer (at Modal.js:220) in RCTView (at View.js:34) in View (at Modal.js:242) in RCTModalHostView (at Modal.js:228) in Modal (created by ReactNativeModal) in ReactNativeModal (at DatePickerModal.js:44) in DatePickerModal (at Deadlines.js:96) in RCTView (at View.js:34) in View (at SafeAreaView.js:41) in ForwardRef(SafeAreaView) (at Deadlines.js:86) in Deadlines (created by ConnectFunction) in ConnectFunction (at SceneView.tsx:122) in StaticContainer in StaticContainer (at SceneView.tsx:115) in EnsureSingleNavigator (at SceneView.tsx:114) in SceneView (at useDescriptors.tsx:150) in RCTView (at View.js:34) in View (at CardContainer.tsx:222) in RCTView (at View.js:34) in View (at CardContainer.tsx:221) in RCTView (at View.js:34) in View (at CardSheet.tsx:33) in ForwardRef(CardSheet) (at Card.tsx:573) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at Card.tsx:555) in PanGestureHandler (at GestureHandlerNative.tsx:13) in PanGestureHandler (at Card.tsx:549) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at Card.tsx:544) in RCTView (at View.js:34) in View (at Card.tsx:538) in Card (at CardContainer.tsx:190) in CardContainer (at CardStack.tsx:621) in RCTView (at View.js:34) in View (at Screens.tsx:84) in MaybeScreen (at CardStack.tsx:614) in RCTView (at View.js:34) in View (at Screens.tsx:54) in MaybeScreenContainer (at CardStack.tsx:496) in CardStack (at StackView.tsx:462) in KeyboardManager (at StackView.tsx:458) in RNCSafeAreaProvider (at SafeAreaContext.tsx:74) in SafeAreaProvider (at SafeAreaProviderCompat.tsx:42) in SafeAreaProviderCompat (at StackView.tsx:455) in GestureHandlerRootView (at GestureHandlerRootView.android.js:31) in GestureHandlerRootView (at StackView.tsx:454) in StackView (at createStackNavigator.tsx:87) in StackNavigator (at App.js:126) in EnsureSingleNavigator (at BaseNavigationContainer.tsx:396) in ForwardRef(BaseNavigationContainer) (at NavigationContainer.tsx:91) in ThemeProvider (at NavigationContainer.tsx:90) in ForwardRef(NavigationContainer) (at App.js:95) in Provider (at App.js:94) in App (at renderApplication.js:45) in RCTView (at View.js:34) in View (at AppContainer.js:106) in RCTView (at View.js:34) in View (at AppContainer.js:132) in AppContainer (at renderApplication.js:39)
the screenshot:
The text was updated successfully, but these errors were encountered:
no matter what scenario I try, I keep getting this warning when trying to use customDatesStyles prop immediately after opening a modal containing react-native-persian-calendar-picker. the app functions as should. but the warning also persists.
my component:
<PersianCalendarPicker onDateChange={(value) => { this.returnDate(value) }} isRTL={true} // selectedDayStyle={{ backgroundColor: '#EAA83A'}} // selectedDayTextColor= "white" textStyle={{ fontFamily: 'iransansmobile'}} todayTextStyle={{ color: 'white'}} minDate={moment('1397/01/01', 'jYYYY/jM/jD').endOf('Day')} maxDate={moment('1400/12/29', 'jYYYY/jM/jD').endOf('Day')} weekdays={['ش','ی','د','س','چ','پ','ج']} selectedDayStyle={{backgroundColor:'#EAA83A'}} customDatesStyles={[{date: moment('1400/1/1' ,'jYYYY/jM/jD').endOf('Day'), containerStyle: {backgroundColor:'#EAA83A'},style: {}, textStyle: {}}]} previousTitle="‹" nextTitle="›" />
the error:
[Tue Apr 13 2021 13:32:22.238] ERROR Warning: Failed prop type: Invalid prop
customDatesStyles[0].datesupplied to
DaysGridView. in DaysGridView (at src/index.js:373) in PersianCalendarPicker (at DatePickerModal.js:58) in RCTView (at View.js:34) in View (at DatePickerModal.js:57) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at createAnimatableComponent.js:599) in withAnimatable(View) (created by ReactNativeModal) in RCTView (at View.js:34) in View (at KeyboardAvoidingView.js:218) in KeyboardAvoidingView (created by ReactNativeModal) in RCTView (at View.js:34) in View (at AppContainer.js:106) in RCTView (at View.js:34) in View (at AppContainer.js:132) in AppContainer (at Modal.js:220) in RCTView (at View.js:34) in View (at Modal.js:242) in RCTModalHostView (at Modal.js:228) in Modal (created by ReactNativeModal) in ReactNativeModal (at DatePickerModal.js:44) in DatePickerModal (at Deadlines.js:96) in RCTView (at View.js:34) in View (at SafeAreaView.js:41) in ForwardRef(SafeAreaView) (at Deadlines.js:86) in Deadlines (created by ConnectFunction) in ConnectFunction (at SceneView.tsx:122) in StaticContainer in StaticContainer (at SceneView.tsx:115) in EnsureSingleNavigator (at SceneView.tsx:114) in SceneView (at useDescriptors.tsx:150) in RCTView (at View.js:34) in View (at CardContainer.tsx:222) in RCTView (at View.js:34) in View (at CardContainer.tsx:221) in RCTView (at View.js:34) in View (at CardSheet.tsx:33) in ForwardRef(CardSheet) (at Card.tsx:573) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at Card.tsx:555) in PanGestureHandler (at GestureHandlerNative.tsx:13) in PanGestureHandler (at Card.tsx:549) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at Card.tsx:544) in RCTView (at View.js:34) in View (at Card.tsx:538) in Card (at CardContainer.tsx:190) in CardContainer (at CardStack.tsx:621) in RCTView (at View.js:34) in View (at Screens.tsx:84) in MaybeScreen (at CardStack.tsx:614) in RCTView (at View.js:34) in View (at Screens.tsx:54) in MaybeScreenContainer (at CardStack.tsx:496) in CardStack (at StackView.tsx:462) in KeyboardManager (at StackView.tsx:458) in RNCSafeAreaProvider (at SafeAreaContext.tsx:74) in SafeAreaProvider (at SafeAreaProviderCompat.tsx:42) in SafeAreaProviderCompat (at StackView.tsx:455) in GestureHandlerRootView (at GestureHandlerRootView.android.js:31) in GestureHandlerRootView (at StackView.tsx:454) in StackView (at createStackNavigator.tsx:87) in StackNavigator (at App.js:126) in EnsureSingleNavigator (at BaseNavigationContainer.tsx:396) in ForwardRef(BaseNavigationContainer) (at NavigationContainer.tsx:91) in ThemeProvider (at NavigationContainer.tsx:90) in ForwardRef(NavigationContainer) (at App.js:95) in Provider (at App.js:94) in App (at renderApplication.js:45) in RCTView (at View.js:34) in View (at AppContainer.js:106) in RCTView (at View.js:34) in View (at AppContainer.js:132) in AppContainer (at renderApplication.js:39)
the screenshot:
The text was updated successfully, but these errors were encountered: