How to pass props to Screen component with a tab navigator?

you can use the property ‘children’ to pass an element type jsx like instead of the property ‘component’, is recomended from react-native.

On this way you can pass props to component example:

    <tab.Screen
    name="home"
       children={()=><ComponentName propName={propValue}/>}
    />

is neccesary to use ‘()=>’ because the property children need a function that return a jsx element, it’s functional.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)