search
LoginSignup
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

React Native Navigation (V2)

2018/9/2現在

React Native Navigation (V2) by Wix — Getting Started

Installing - React Native Navigation v2 - truly native navigation for iOS and Android

install

npm install --save react-native-navigation@alpha

すごく分かりにくいが、XCodeで設定をがんばってやる

Installing - React Native Navigation v2 - truly native navigation for iOS and Android

Link Binary With Libraries section add libReactNativeNavigation.a
はすごく分かりにくい。+を押してからlibReactNativeNavigation.aをAddする

index.js

import { Navigation } from "react-native-navigation";
import App from './App';


Navigation.registerComponent(`navigation.playground.WelcomeScreen`, () => App);

Navigation.events().registerAppLaunchedListener(() => {
  Navigation.setRoot({
    root: {
      component: {
        name: "navigation.playground.WelcomeScreen"
      }
    }
  });
});



これで実行
何も変わってないように見えるが、実はちゃんとNavigationされて表示されている。




Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0
Help us understand the problem. What are the problem?