Questions tagged [wix-react-native-navigation]

Questions about Wix's React Native Navigation package (react-native-navigation on npm).

269 questions
0
votes
0 answers

wix React-Native-Navigation: Would a parent screen on the stack ever be unmounted while user is viewing the child screen?

I’m using wix react-native-navigation with bottom tabs. If i navigated to a screen say 2 levels deep from one of the root tabs (i.e. pushed two screens on the stack) so: E.g. RootTab_Screen1 -> ChildScreen2 -> Grandchild_Screen3 While I'm viewing…
0
votes
0 answers

java.lang.ClassCastException: ReactActivity cannot be cast to com.reactnativenavigation.NavigationActivity

I am using wix react-native-navigation library for navigation at app level. Also, I have library node module, in that module I am having an Activity which extends ReactActivity. When I try to open that ReactActivity from my app's MainActivity which…
0
votes
0 answers

Wix RNN — Anybody know how to nest bottomTabs inside of a stack navigator without incurring extra space to the topBar?

The behavior was reported in their issues 2 years ago: https://github.com/wix/react-native-navigation/issues/6174 There doesn’t seem to have been any update addressing it, and I was just wondering if anyone had encountered a workaround, or the right…
0
votes
1 answer

Cannot get React-Native-Navigation installed for the life of me

I am working on implementing wix navigation to my React Native project. So far I have: Initialised the project with the CLI, installed react-native-navigation and followed the set-up instructions including going through it manually as well as using…
0
votes
1 answer

RN Refresh parent screen after navigating back from particular screens

I have main screen A. From A it's possible to navigate B, C, D screens. In most cases I need to refresh screen A on focus event, only A shouldn't be refreshed when navigating back from D. How can I implement this scenario in react native using…
0
votes
1 answer

How to navigate to a same screen on stack in react native

I have a stack in react-native-navigation. I want to navigate to a screen that is in the stack before. but when I use Navigation.push command nothing happened and the screen does not change. How to implement this on react-native?? for exmaple my…
0
votes
1 answer

wix react native navigation registerComponent React is not defined

In react-native-navigation 7.14.0, the Navigation.registerComponentWithRedux has been deprecated and it suggested that registerComponentWithRedux is deprecated and will be removed in the next version! Please use Navigation.registerComponent instead.…
s-hunter
  • 24,172
  • 16
  • 88
  • 130
0
votes
1 answer

Crash between react-native-navigation and yarn-workspace

Bug Report Hello My project with Yarn Workspace crashes once I add RNN. I tried with and without Yarn Workspace and it seems to be the issue. I made a demo for testing purpose. Know that I tried this several times. To Reproduce Step 1: install…
0
votes
1 answer

How to translate title text of component?

How can I translate the title text dynamically with i18n tools such as i18next. Currently I am passing in the title like so: Settings.options = { topBar: { title: { text: 'Settings', }, }, };
0
votes
1 answer

How to change the background color of selected bottom tab in react native navigation

I am using react native navigation v2 for by application. I need to change the background color of the selected bottom tab. options: { bottomTab: { icon: val.icon, text: val.text, textColor: getColorTheme("SECONDARY",…
Dinesh babu
  • 1
  • 1
  • 1
0
votes
1 answer

How to handle back button android to both exit app and close react native navigation side menu when it is open in home page

I am using react native navigation Wix side menu in my project. I want to close it when It is open and user clicks on mobile physical back icon. But I have defined for the back button to close my app when user clicks on it. So my back icon should do…
anna
  • 95
  • 3
  • 16
0
votes
1 answer

React-native-navigation animate popping a screen?

So I have a react-native app which is using react-native-navigation. Whenever I click a card in my app, it pushes me the card screen. What I want to achieve is the following: when swiping down from that screen, as you swipe down the screen gets…
0
votes
1 answer

Dismiss modal and change tab with Wix React Native Navigation

Is it possible to dismiss a modal and automatically change tab with Wix react-native-navigation 4.2.0. This is what I have unsuccessfully tried: Navigation.dismissModal(componentId, { options: { bottomTabs: { …
Kevin Amiranoff
  • 13,440
  • 11
  • 59
  • 90
0
votes
1 answer

How to get current routes size of wix/react-native-navigation?

I'm trying to handle the back button on android since my React Native app has custom logic on the back button pressed for the root screen...Is there any method like Navigation.getCurrentRoutes() in order to do something like this: handleBackButton…
0
votes
1 answer

How to access a variable in header tab navigation in react native

I have a switch in my tab header and I want to get the value of switch value in my header every time when I toggle the switch. how can I get that value? const navigationOptions = ({ navigation }) => { const { params = {} } = navigation.state; …