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…
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…
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:…
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…
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…
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…
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…
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 }, …
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…
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.
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…
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…
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…
1
2 3 4 5 6