Answers for "Looks like you're passing an inline function for 'component' prop for the screen"

0

Looks like you're passing an inline function for 'component' prop for the screen

I made it work by passing what I wanted through params instead of props. For 
you, it would look like this:

<Tab.Screen
    name="Home"
    component={PharmacyHome}
    initialParams={{ catId: this.props.navigation.state.params }}
/>
Posted by: Guest on September-27-2021

Code answers related to "Looks like you're passing an inline function for 'component' prop for the screen"

Code answers related to "Javascript"

Browse Popular Code Answers by Language