react-native-navigation

React navigation navigate without navigation props example not working

依然范特西╮ 提交于 2019-12-25 03:04:07
问题 I have a react-native app and I'm using the new Context API to manage the storage and stuff, now I'm wrapping the createAppContainer(AuthNavigator) in the <Provider> created by the context api, so in order to navigate from the Context API file, I tried to do the exact same example I found in the documentation by creating the NavigationService and passing the ref of the AppContainer to the NavigationService and using { NavigationActions } , somehow it's not working neither it's throwing any

React-native and react-native-navigation error

南楼画角 提交于 2019-12-24 19:27:59
问题 I have question about react-native-navigation , when i am trying to start my app with command npm run android i am getting an error here is the github repo with code 'https://github.com/albert002/learn-react-native' `* What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not resolve project :react-native-navigation. Required by: project :app Unable to find a

react-native-navigation | Setting initial screen without putting it as tab?

岁酱吖の 提交于 2019-12-24 12:09:47
问题 I want to set initial screen on my react native app, but without putting it as a tab. I mean I want to be able to reach the navigator.push outside a screen, something like this. Navigation.startTabBasedApp({ tabs: [ screen: 'Signup' ] }) Navigator.push({ screen: 'Landing', }) 回答1: See this doc https://wix.github.io/react-native-navigation/#/top-level-api You need to use Navigation.startSingleScreenApp . Next, if u need open tab bar, just call Navigation. startTabBasedApp from anywhere in your

react-native-navigation | Setting initial screen without putting it as tab?

ⅰ亾dé卋堺 提交于 2019-12-24 12:07:18
问题 I want to set initial screen on my react native app, but without putting it as a tab. I mean I want to be able to reach the navigator.push outside a screen, something like this. Navigation.startTabBasedApp({ tabs: [ screen: 'Signup' ] }) Navigator.push({ screen: 'Landing', }) 回答1: See this doc https://wix.github.io/react-native-navigation/#/top-level-api You need to use Navigation.startSingleScreenApp . Next, if u need open tab bar, just call Navigation. startTabBasedApp from anywhere in your

FAILURE: Build failed with an exception in React Native Android

懵懂的女人 提交于 2019-12-24 07:19:50
问题 I'm using react-native-cli: 1.2.0 , react-native: 0.40.0 and working on Ubuntu 16.04. I am trying to implement react-native-navigation with Android app, but it gives me an error like the following: After downgrading to react-native 0.25.1 I have the following issues: /home/dinesh/Desktop/Dineshaws/android/app/src/main/java/com/dineshaws/MainApplication.java:6: error: cannot find symbol import com.facebook.react.ReactApplication; ^ symbol: class ReactApplication location: package com.facebook

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-navigation

时光总嘲笑我的痴心妄想 提交于 2019-12-24 06:51:10
问题 I switched from react native navigation v1 to v2 and I have theses 5 errors when trying to sync my files with Android Studio. Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-navigation. Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :react-native-navigation. Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :react-native-navigation.

'ReactNativeNavigation/ReactNativeNavigation.h' file not found

喜夏-厌秋 提交于 2019-12-23 22:26:33
问题 Note: Please make sure to comment as to what I should mention to improve this question instead of thumbing down, I was able to successfully set up React Navigation with expo for another project, and would love to get RNN up and running in this project. I'm working on setting up React Native Navigation for my React Native app, specifically iOS using Xcode. I've changed the AppDelegate.m file as instructed: #import "AppDelegate.h" #import <React/RCTBundleURLProvider.h> #import <React

Registering React Native Code Push with React Native Navigation by Wix

梦想与她 提交于 2019-12-23 17:30:57
问题 I use react-native-code-push. which is: This plugin provides client-side integration for the CodePush service, allowing you to easily add a dynamic update experience to your React Native app(s). but In some of native implementations of navigation like react-native-navigation there isn't any root component. the app will start calling a function like this: // index.js import { Navigation } from 'react-native-navigation'; Navigation.startTabBasedApp({ tabs: [ { label: 'One', screen: 'example

Hide parent's navigation header from the nested navigator

流过昼夜 提交于 2019-12-23 01:07:14
问题 I'm developing my first react native app. I've an issue with the nested navigations in the app. I've the following navigations: Main App Navigator : createStackNavigator Authentication Navigator : createStackNavigator Bottom Bar Navigator : createBottomTabNavigator Top Tab Navigator : createMaterialTopTabNavigator My too nested Navigator : createStackNavigator What i want ? I'm trying to hide the BottomBar & TopTab Navigators headers form a screen in the last nested navigator. What I did? Ive

Deep links in react-native-firebase notifications

百般思念 提交于 2019-12-22 18:06:31
问题 I am using react-native-firebase with messaging to deliver notifications to my app with cloud functions, with admin.messaging().send(message), very similar to here: https://medium.com/the-modern-development-stack/react-native-push-notifications-with-firebase-cloud-functions-74b832d45386 . I receive notifications when the app is in the background. Right now I am sending a text in the body of the notification, like 'a new location has been added to the map'. I want to be able to add some sort