msd-d / PetHub

An app for animal adoption.
1 stars 0 forks source link

New navigation #33

Closed Joergenson closed 3 years ago

Joergenson commented 3 years ago

Should fix the problem with views that don't need a bar icon :)

To use navigation make sure to use the object that is passed down to every screen by destructing the property

example of this could be:

function DebugScreen({ navigation })

then call navigation like this:

navigation.navigate("Login")

and finally, remember to validate the property

DebugScreen.propTypes = { navigation: PropTypes.object, };