![withNavigation can only be used on a view hierarchy of a navigator and cant use a custom button component inside a Modal - Stack Overflow withNavigation can only be used on a view hierarchy of a navigator and cant use a custom button component inside a Modal - Stack Overflow](https://i.stack.imgur.com/ZylDW.png)
withNavigation can only be used on a view hierarchy of a navigator and cant use a custom button component inside a Modal - Stack Overflow
![React Native Navigation Patterns. Exploring the out-of-the-box navigation… | by John Tucker | codeburst React Native Navigation Patterns. Exploring the out-of-the-box navigation… | by John Tucker | codeburst](https://miro.medium.com/max/1536/1*yKxNwFTavJXM7gCzpNmKcA.png)
React Native Navigation Patterns. Exploring the out-of-the-box navigation… | by John Tucker | codeburst
![withNavigation can only be used on a view hierarchy - Error when using FluidNavigation instead createStackNavigation - Stack Overflow withNavigation can only be used on a view hierarchy - Error when using FluidNavigation instead createStackNavigation - Stack Overflow](https://i.stack.imgur.com/4B0ui.png)
withNavigation can only be used on a view hierarchy - Error when using FluidNavigation instead createStackNavigation - Stack Overflow
![createDrawerNavigator and withNavigation error · Issue #4416 · react-navigation/react-navigation · GitHub createDrawerNavigator and withNavigation error · Issue #4416 · react-navigation/react-navigation · GitHub](https://user-images.githubusercontent.com/16277984/41123324-f1d77548-6aa6-11e8-8599-4a709288a1fb.png)