Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN: react-navigation 3.0 #443

Open
onmyway133 opened this issue Nov 23, 2018 · 10 comments
Open

RN: react-navigation 3.0 #443

onmyway133 opened this issue Nov 23, 2018 · 10 comments

Comments

@onmyway133
Copy link
Owner

Install

npm install react-navigation@^3.0.0
npm install react-native-gesture-handler
npm install @react-navigation/core
npm install @react-navigation/native
@onmyway133
Copy link
Owner Author

onmyway133 commented Nov 23, 2018

Unable to resolve module './createNavigationContainer'
react-navigation/react-navigation#5222

// @flow

import React from 'react'
import createAppContainer from 'react-navigation'
import makeRootNavigator from './src/screens/root/RootNavigator'

const RootNavigator = makeRootNavigator({})
const AppContainer = createAppContainer(RootNavigator)

type Props = {}

export default class App extends React.Component<Props> {
  render() {
    return <AppContainer />
  }
}

Reset cache npm start -- --reset-cache

@onmyway133
Copy link
Owner Author

Cannot read property 'State' of undefined.
react-navigation/react-navigation#5240

If link manually react-native-gesture-handler

  • Drag RNGestureHandler.xcodeproj to Xcode -> Libraries
  • Link Binary with Libraries

@onmyway133
Copy link
Owner Author

onmyway133 commented Nov 23, 2018

(0 , _reactNavigation.default) is not a function

Use

import { createAppContainer } from 'react-navigation'

instead

import createAppContainer from 'react-navigation'

@onmyway133
Copy link
Owner Author

onmyway133 commented Nov 23, 2018

undefined is not an object evaluating 'RNGestureHandlerModule.State
react-navigation/react-navigation#5250

@onmyway133
Copy link
Owner Author

Clear gradle cache https://stackoverflow.com/a/30450020/1418457

@onmyway133
Copy link
Owner Author

@onmyway133
Copy link
Owner Author

@brentvatne
Copy link

npm install react-navigation@^3.0.0
npm install react-native-gesture-handler
npm install @react-navigation/core
npm install @react-navigation/native

the last two here aren't needed actually, @react-navigation/core and @react-navigation/native are installed by react-navigation

@onmyway133
Copy link
Owner Author

@brentvatne Hi, thanks a lot for your feedback, and for this great library

@alangumer
Copy link

alangumer commented Nov 26, 2018

To solve cannot read property 'State' of undefined.

yarn add react-native-gesture-handler && react-native link
https://reactnavigation.org/blog/#installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants