Questions tagged [react-native-navigation-v2]
85 questions
14
votes
1 answer
Custom component topbar button event RNN v2
I have a custom component 'MenuButton' in my RNNv2 topbar. I want openMenu() to run when this button is clicked, but this doesn't happen. My typescript linting tells me Property openMenu does not exist on typeof Home. Why is this?
class Home…

Adam.V
- 779
- 2
- 9
- 25
13
votes
3 answers
React Native AppLoading without Expo
I've used expo for a while now and have switched to react-native-init without expo.
I've been very comfortable working without expo (thanks Github) but somehow I am unable to find a solution with much googling, for a similar feature to AppLoading in…

Someone Special
- 12,479
- 7
- 45
- 76
13
votes
1 answer
How to add sidebar drawer with react native navigation v2?
With react-native-navigation v1 you can set up a drawer like this:
drawer: {
left: {
screen: 'ScreenName'
}
}
In docs of react-native-navigation they mention that drawer is still supported,
but there in no example of its usage. I…

angelos_lex
- 1,593
- 16
- 24
9
votes
1 answer
React Native Navigation v2 (wix) Disable TopBar
I am using the React-Native-Navigation v2 from wix (NOT React-Navigation).
I tried disabling the topBar which is rendered by default.
I used following options and am rendering bottomTabs:
Navigation.setDefaultOptions({
topBar: {
visible:…

tabulaR
- 300
- 3
- 13
7
votes
2 answers
Wix React-Native-Navigation v2 and redux-persist
I am using react-native-navigation and redux for state management. I register each Component as a WrappedComponent, hooking it up the redux store. This works very well and is very similar as in the atoami example code from the official…

Cactus
- 864
- 1
- 17
- 44
7
votes
3 answers
Application has not been registered (react-native-navigation v2)
React native navigation v2 issue.
My app starts with index.js and it is registered into AppDelegate as well. Here is the details:
import { AppRegistry } from 'react-native';
const { start } = require('./src/app');
start();
Here…

Omar Faroque Anik
- 2,531
- 1
- 29
- 42
6
votes
2 answers
Wix React Native Navigation V2, how to lock orientation portrait on Android
I'm using RNN2 and I need to lock orientation on Android to portrait. Usually in a traditional android app it's done with android:screenOrientation = "portrait" in manifest.xml, but when I have setup the screens with RNN2 it's not working.
Any help…
user9677330
6
votes
4 answers
Pass Touch Events through Overlay
Setup
I have 2 screens, let us call them A and B.
Screen A is showing the camera image recorded by the back camera of the phone (third party library which i do not have further access to).
Screen B has a semi transparent background and some UI…

Jan Owiesniak
- 81
- 2
- 5
6
votes
1 answer
React-Native-Navigation V2 with redux cannot pass props
I have a simple two screens app with redux and React-Native-Navigation V2. I try to pass an item from a list to another view as a prop. Unfortunately, I get an error:
TypeError: Cannot read property 'id' of undefined
The item is passed but not…

Roo
- 613
- 1
- 7
- 24
5
votes
1 answer
wix-react-native-navigation v2 statusBar not working
I am trying react-native-navigation V2 but not able to change the status bar color.
Navigation.setDefaultOptions({
statusBar: {
visible: true,
style: "dark",
backgroundColor: "red"
},
topBar: {
background: {
color: COLOR.primaryColor
},
…

Praveena
- 6,340
- 2
- 40
- 53
4
votes
2 answers
How do i open the same screen multiple times with different content using react native navigation v2?
The objective is to reuse the same screen ui with different content and still be able to handle back navigation(like how reddit app can show multiple user/feed screens as you click on them but still handle custom back navigation) using react native…

Shreevatsa Acharya
- 133
- 1
- 10
4
votes
3 answers
How do I disable the device back button on Android (react-native)?
How can I disable the physical device back button on Android with React-Native? I don't want to enable it for the user.

Oskar Gusgård
- 457
- 7
- 20
4
votes
1 answer
Why React Native Navigation v2 icon is not showing in iOS?
I'm using new V2 of react-native-navigation, when I'm use back icons and right top bar button icons, I't works fine on android devices, but with IOS I'm not getting the image, only the blue circle.
These are the codes use generate top bar…

Wave Chand
- 41
- 4
4
votes
1 answer
Babel overrides is not allowed in preset options react native navigation
I trying to add a router react native navigation v2 to this starter project on react-native, but I have a problem that is connected with babel package (probably). When I run
react-native run-android
I have this error in Metro Bundler:
loading…

Kirill Cherkalov
- 41
- 1
- 2
3
votes
1 answer
Setting up react native push notification with wix react native navigation v3 - problem when app is closed
I am sending a notification that navigates the user to a specific screen when the notification is clicked.
This works perfectly when the app is opened or running in the background, however, when the app is closed onNotification is not being…

Esteban Kramer
- 41
- 1
- 4