Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Register Component not called - react native?

$
0
0

I have renamed my bundle Identifier from for example myApp to myAppUser.

and a clean build folder for ios/android, reset cache, remove node_modules then build app again.

In iOSApp won't work and I got this error

myApp has not been registered.

  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.

In Androidworks very well.

Now in app.json file after renamed that contains:

{"name": "myAppUser" ,"displayName": "myAppUser"}

index.js

/** * @format */import {AppRegistry} from 'react-native';import App from './App';import {name as appName} from './app.json';AppRegistry.registerComponent(appName, () => App);

when I change "name" in app.json to myApp iOS work and android Not work :\

So how can I solve this issue with the new name myAppUser?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>