React-native-navigation: _reactNative.Navigation.startSingleScreenApp

Created on 4 Jan 2019  路  1Comment  路  Source: wix/react-native-navigation

Issue Description

Xcode settings got wiped and some iOS files possibly lost through a git issue. Now the app won't start up (errors below). I re-done the whole library linking process and re-traced the steps but the app won't start.

Errors:

  • red error simulator screen that says: _reactNative.Navigation.startSingleScreenApp is not a function
  • the terminal window I ran "run-ios" fails and has this error:
    Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_RNNCustomViewController", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

https://wix.github.io/react-native-navigation/#/docs/Installing?id=requirements say to edit .h and .m, is there a specific example of what AppDelegate.h should look like?

Steps to Reproduce / Code Snippets / Screenshots

  • npm run start
  • run-ios --simulator="iPhoneX"




App.js:
import { Navigation } from 'react-native-navigation';

import AuthScreen from './src/screens/Auth/Auth';
import SequencesList from './src/screens/SequencesList/SequencesList';

Navigation.registerComponent("my-app.AuthScreen", () => AuthScreen);
Navigation.registerComponent("my-app.App", () => App);
Navigation.registerComponent("my-app.SequencesList", () => SequencesList);

Navigation.startSingleScreenApp({
screen: {
screen: "my-app.SequencesList",
title: "Sequences"
}
});

screen shot 2019-01-04 at 6 45 33 am

screen shot 2019-01-04 at 6 46 51 am

screen shot 2019-01-04 at 6 47 53 am


Environment

  • React Native Navigation version: ^2.2.5
  • React Native version: 0.55.3
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator

Most helpful comment

Hey there, startSingleScreenApp is v1 api and you have v2 installed.
You can refer to the migration guide for more info.

>All comments

Hey there, startSingleScreenApp is v1 api and you have v2 installed.
You can refer to the migration guide for more info.

Was this page helpful?
0 / 5 - 0 ratings