We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://reactnavigation.org/docs/hello-react-navigation#passing-additional-props
Stack component can accept render callback instead of component prop.
eg:
<Stack.Screen name="Home"> {props => <HomeScreen {...props} extraData={someData} />} </Stack.Screen>
The text was updated successfully, but these errors were encountered:
module Screen = { type componentProps = {navigation}; type renderCallbackProp = { navigation, route, }; [@bs.obj] external makeProps: ( ~name: string, ~options: optionCallback=?, ~initialParams: M.params=?, ~component: React.component({ . "navigation": navigation, "route": route, }) =?, ~children: renderCallbackProp => React.element=?, unit ) => screenProps(M.params); let make = stack##"Screen"; };
How can I make sure that either component or children is given as props? Both of them should not be undefined and both of them should not be provided.
component
children
undefined
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Feature request
https://reactnavigation.org/docs/hello-react-navigation#passing-additional-props
Stack component can accept render callback instead of component prop.
eg:
The text was updated successfully, but these errors were encountered: