I have upgraded to React Navigation v5
in my app. I am using watermelondb in my app.
While using ReactNavigationv4
, I used to pass the database props as follows
export const createNavigation = props =>
But in v5 do something as
const Stack = createStackNavigator({database});
throws an error saying
Does any one know how to pass props for v5?