React-native-navigation: IOS run is fail (Application X has not been registered)

Created on 11 Jan 2018  ·  21Comments  ·  Source: wix/react-native-navigation

Hi. I'm run on IOS is error, but i'm run on android is well
screen shot 2018-01-11 at 11 23 01 am

screen shot 2018-01-11 at 1 54 40 pm

I'm did clear cache and reinstall node_modules, bui it is not running.

watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf yarn.lock && rm -rf ./node_modules && yarn install && yarn start -- --reset-cache

I don't find what wrong. Please help me.

Environment

  • React Native Navigation version: 1.1.236
  • React Native version: 0.48.4
  • Platform(s) (iOS, Android, or both?): IOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator
🏚 stale

Most helpful comment

I had success updating AppDelegate.m to match the example here -> https://github.com/wix/react-native-navigation/blob/master/example/ios/example/AppDelegate.m

All 21 comments

I have the same issue, when I push a specific screen.

image

registerScreens()

import ArticlesScreen from './articles';
import CategoriesScreen from './categories';

export function registerScreens(store, Provider) {
    // screens
    Navigation.registerComponent('app.Articles', () => ArticlesScreen, store, Provider);
    Navigation.registerComponent('app.Categories', () => CategoriesScreen, store, Provider);
    Navigation.registerComponent('app.categories.List', () => ArticlesScreen, store, Provider);

}

Code which causes the error (on CategoriesScreen)

onCardPressed = (category) => {
    const { navigator, t, theme } = this.props;
    const style = ThemeManager.getStyleSheetForComponent('screens', theme);

    navigator.push({
        screen: 'app.categories.List',
        title: t(category),  // returns localized string
        navigatorStyle: {
            ...style, // basic screen styles
            navBarCustomView: null,
        },
        passProps: {
            category
        },
    });
};

Environment

  • React Native Navigation version: current master branch
  • React Native version: 0.51.0
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator; Debug & Release

Android works fine.

You must link lib to ios and android first.

@tiempham I did linking, I run react-native link link all lib into project.

@kungfu321 How about your index.js? it's look like
import App from './src/App'; const app = new App();

My app works well. Only if I push this screen the error occurs.
I've 6 other registered screens and two custom navbars. Everything works well (in iOS too) till I push the app.categories.List screen.

@tiempham yes here is my file

import App from './src/app'; const app = new App();

Getting the same error.
My file index file is
import App from "./app/App";

and registerScreen
`import { Navigation } from "react-native-navigation";

import Social from "../components/Social";
import Events from "../components/Events";
import Menu from "../components/Menu";
import Contact from "../components/Contact";
import Login from "../components/Login";
import EventDetails from "../components/EventDetails";
import ThankYou from "../components/ThankYou";
import Upload from "../components/Upload";
import Comments from "../components/Comments";

// all screens of the app
export function registerScreens() {
Navigation.registerComponent("GoVioletWhite.Social", () => Social);
Navigation.registerComponent("GoVioletWhite.Events", () => Events);
Navigation.registerComponent("GoVioletWhite.Menu", () => Menu);
Navigation.registerComponent("GoVioletWhite.Contact", () => Contact);
Navigation.registerComponent("GoVioletWhite.Login", () => Login);
Navigation.registerComponent(
"GoVioletWhite.EventDetails",
() => EventDetails
);
Navigation.registerComponent("GoVioletWhite.ThankYou", () => ThankYou);
Navigation.registerComponent("GoVioletWhite.Upload", () => Upload);
Navigation.registerComponent("GoVioletWhite.Comments", () => Comments);
}
`

Are there any updates? Getting this error right from the beginning

update?

I am facing a similar issue with. I posted on stackoverflow as well - https://stackoverflow.com/questions/49306366/application-not-registered-error-when-using-react-native-navigation-with-redux

Any guidance would be of great help! Thanks!

Experiencing the same. No solution in sight.

+1

Same error in V2

I had success updating AppDelegate.m to match the example here -> https://github.com/wix/react-native-navigation/blob/master/example/ios/example/AppDelegate.m

@neil-hyd Thanks, this is the 1st thing that has worked for me (I had the problem with and without the redux integration).

@neil-hyd thx! your save my day)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

The issue has been closed for inactivity.

i got this error at android part, currently i using Window OC

Not working.
And the link to the "sullotion" is not working.

Was this page helpful?
0 / 5 - 0 ratings