agrcrobles / react-native-web-boilerplate

I am no longer in maintenance
71 stars 11 forks source link

Various Warnings #9

Closed grigio closed 6 years ago

grigio commented 7 years ago

Thanks for this boilerplate! It works but I see several warnings

Warning: Unknown props `layout`, `navigationState`, `navigation`, `index`, `router`, `onNavigateBack`, `renderLeftComponent`, `renderRightComponent`, `renderTitleComponent` on <div> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent (created by Header)
    in Header (created by Transitioner)
    in div (created by View)
    in View (created by Transitioner)
    in div (created by View)
    in View (created by Transitioner)
    in Transitioner (created by CardStack)
    in CardStack (created by Unknown)
    in Unknown (created by Navigator)
    in Navigator (created by NavigationContainer)
    in NavigationContainer (created by SceneView)
    in SceneView (created by Card)
    ...
agrcrobles commented 7 years ago

@grigio ! glad you made it work yes, as it is said in https://github.com/react-community/react-navigation/issues/622 looks like it is something related to how react-navigation uses some props of Animated.View and as a result react-native-web throws those warning but I didn't dig into that.

grigio commented 7 years ago

Argh.. yes, probably it's because some properties aren't implemented in react-native-web