react-native-navigation

react-native: Command `run-android` unrecognized. Maybe caused by npm install

本小妞迷上赌 提交于 2019-12-10 13:43:11
问题 Recently I started getting this issue, when I install a react-native package (eg: react-navigation ) into my project, a whole bunch of packages are been removed (including react, react-native i think). And then when i try to run command " run-android ", it says it doesn't recognize. I recently updated to the latest npm and react-native-cli . Is it something wrong with " npm install "? or react-native ? node version: 8.1.2 <br/> react-native-cli: 2.0.1 <br/> react-native: 0.45.1 <br/> react

Unable to resolve “fbjs/lib/areEqual” from “node_modules\react-native-gesture-handler\createHandler.js”

好久不见. 提交于 2019-12-10 09:59:13
问题 I'm building a react-native application with expo, however, I have an error, therefore I'm unable to continue building the application. I even looked for the file in node_modules that is mentioned in the error message. I'm using the react-native-gesture-handler for my screen navigation. If I uninstalled the react-native-gesture-handler and I removed the navigation code would this solve my error? How do I resolve this? App.js import React, { Component } from 'react'; import { StackNavigator }

Wix react-native-navigation change Tab and push screen

馋奶兔 提交于 2019-12-10 04:57:43
问题 How can I simultaneously switch tab and push screen? When the button is pressed, I would like to switch to another tab and push a new screen. Is it possible? class Example extends Component { buttonHandler = () => { this.props.navigator.switchToTab({ tabIndex: 0 }); this.props.navigator.push({ // actually this navigator's tabIndex is 0 screen: "dc.Examplecreen", title: "Exampe", passProps: { lesson : this.props } }); } } 回答1: There is no any way to passProps with switchToTab . also i found in

Hide parent's navigation header from the nested navigator

耗尽温柔 提交于 2019-12-07 11:33:30
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 tried to set the header as null in my nested nav, but thats hides the nested header not the parents

Babel overrides is not allowed in preset options react native navigation

瘦欲@ 提交于 2019-12-07 07:23:47
问题 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 dependency graph, done. : bundling failed: Error: [BABEL] D:\react—native\projecti\index.js: .overr ides is not allowed in preset options at Object.keys.forEach.key (D:\react—native\projecti\node_modules\metro\node odules\Obabel\core\lib\config

React Native createDrawerNavigator not opening Navigation Drawer

核能气质少年 提交于 2019-12-06 14:15:29
问题 Implement createDrawerNavigator but not working. Main Component import React, { Component } from 'react'; import Menu from './MenuComponent'; import { DISHES } from '../shared/dishes'; import { View,Platform } from 'react-native'; import Dishdetail from './DishdetailComponent'; import Home from './HomeComponent'; import { createStackNavigator,createAppContainer ,createDrawerNavigator } from 'react-navigation'; import { Icon } from 'react-native-elements'; const MenuNavigator =

Deep links in react-native-firebase notifications

余生颓废 提交于 2019-12-06 13:23:16
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 of deep link, so that when I swipe View on the notification (on iOS for example), it will take me to a

wix react native navigation v2 | how to push new screen to current screen from side drawer component

落爺英雄遲暮 提交于 2019-12-06 06:24:30
问题 I have the next layout: Navigation.setRoot( { root: { sideMenu: { right: { component: { id: 'sideDrawer', name: DRAWER, } }, center: { bottomTabs: { id: 'bottomTabs', children: [ { stack: { children: [ { component: { id: 'searchTab', name: SEARCH_TAB, options: { bottomTab: { text: 'Search', icon: iconsMap[ 'search' ], testID: 'searchTab', }, topBar, } } } ] } }, { stack: { children: [ { component: { id: 'secondTab', name: SECOND_TAB, options: { bottomTab: { text: 'Second Tab', icon: iconsMap[

Unable to resolve “fbjs/lib/areEqual” from “node_modules\\react-native-gesture-handler\\createHandler.js”

混江龙づ霸主 提交于 2019-12-06 03:29:14
I'm building a react-native application with expo, however, I have an error, therefore I'm unable to continue building the application. I even looked for the file in node_modules that is mentioned in the error message. I'm using the react-native-gesture-handler for my screen navigation. If I uninstalled the react-native-gesture-handler and I removed the navigation code would this solve my error? How do I resolve this? App.js import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import Plan from './screens/Plan'; import Home from './screens/Home'; const

React Native: Migrate to AndroidX

孤者浪人 提交于 2019-12-06 03:02:25
问题 I ran my Android RN project today and was presented with the following error Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.app.INotificationSideChannel$Stub I believe that in order to resolve this, it is