esbenp / react-native-clean-form

Easy react-native forms using bootstrap-like syntax with redux-form+immutablejs integration. Styled using styled-components
http://esbenp.github.io/2017/01/06/react-native-redux-form-immutable-styled-components/
MIT License
478 stars 83 forks source link

undefined is not an object (evaluating 'props.theme.Fieldset.borderBottomColor') #95

Open GoGaetan opened 5 years ago

GoGaetan commented 5 years ago

I am having this issue and can't fix it. My config is: "react-native-clean-form": "^0.5.0", "react-redux": "^5.0.7", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",

error got from command line:

TypeError: TypeError: undefined is not an object (evaluating 'props.theme.Fieldset.borderBottomColor')

`This error is located at: in StyledNativeComponent (created by ForwardRef) in Fieldset (at FormView.js:39) in RCTView (at View.js:44) in StyledNativeComponent (created by ForwardRef) in RCTScrollContentView (at ScrollView.js:852) in RCTScrollView (at ScrollView.js:977) in ScrollView (at Form.js:28) in RCTView (at View.js:44) in Form (at FormView.js:37) in FormView (created by Form(FormView)) in Form(FormView) (created by Connect(Form(FormView))) in Connect(Form(FormView)) (created by ReduxForm) in ReduxForm (at DetailsScreen.js:31) in DetailsScreen (created by SceneView) in SceneView (at StackViewLayout.js:793) in RCTView (at View.js:44) in AnimatedComponent (at StackViewCard.js:69) in RCTView (at View.js:44) in AnimatedComponent (at screens.native.js:59) in Screen (at StackViewCard.js:57) in Card (at createPointerEventsContainer.js:27) in Container (at StackViewLayout.js:858) in RCTView (at View.js:44) in ScreenContainer (at StackViewLayout.js:311) in RCTView (at View.js:44) in AnimatedComponent (at StackViewLayout.js:307) in Handler (at StackViewLayout.js:300) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.js:79) in RCTView (at View.js:44) in Transitioner (at StackView.js:22) in StackView (created by Navigator) in Navigator (at createKeyboardAwareNavigator.js:12) in KeyboardAwareNavigator (created by SceneView) in SceneView (at StackViewLayout.js:793) in RCTView (at View.js:44) in AnimatedComponent (at StackViewCard.js:69) in RCTView (at View.js:44) in AnimatedComponent (at screens.native.js:59) in Screen (at StackViewCard.js:57) in Card (at createPointerEventsContainer.js:27) in Container (at StackViewLayout.js:858) in RCTView (at View.js:44) in ScreenContainer (at StackViewLayout.js:311) in RCTView (at View.js:44) in AnimatedComponent (at StackViewLayout.js:307) in Handler (at StackViewLayout.js:300) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.js:79) in RCTView (at View.js:44) in Transitioner (at StackView.js:22) in StackView (created by Navigator) in Navigator (at createKeyboardAwareNavigator.js:12) in KeyboardAwareNavigator (at createAppContainer.js:388) in NavigationContainer (at App.js:55) in RCTView (at View.js:44) in Provider (at App.js:52) in App (at withExpoRoot.js:22) in RootErrorBoundary (at withExpoRoot.js:21) in ExpoRootComponent (at renderApplication.js:34) in RCTView (at View.js:44) in RCTView (at View.js:44) in AppContainer (at renderApplication.js:33)

platonicvizard commented 5 years ago

I'm getting the same error and I'm using

"react-native-clean-form": "^0.5.0", "react": "16.8.3", "react-native": "0.59.2" without expo

williams-voon commented 5 years ago

https://github.com/williams-voon/react-native-clean-form I fixed the bug. I just rename property theme to myTheme. Check my latest commit for detailed information.

platonicvizard commented 5 years ago

https://github.com/williams-voon/react-native-clean-form I fixed the bug. I just rename property theme to myTheme. Check my latest commit for detailed information.

Thanks. I'm looking forward to seeing this fix release soon.