junedomingo / movieapp

Discover Movies and TV shows - React Native
MIT License
1.82k stars 473 forks source link

How do you register the application? #22

Closed pmlarocque closed 7 years ago

pmlarocque commented 7 years ago

Hello,

Thanks for the work and example, kind of trying to replicate this with RNN v2, but I cannot make my repository to work.

I cannot find where you call AppRegistry.registerComponent("movieapp", () => ...) or equivalent anywhere. So my version get the

Application [name] has not been registered. error

Could you please elaborate ? I did a few hypothesis, but none worked.

Thanks!

Gskflute commented 7 years ago

I want to know this too please.

No idea how to run the app without AppRegistry

pmlarocque commented 7 years ago

Look like Navigation.registerContainer does call appregistry but there is no container named movieapp, so I still don’t know.

Gskflute commented 7 years ago

Where did he call Navigation.registerContainer?? i only found Navigation.registerComponent inside the registerScreens main function

pmlarocque commented 7 years ago

Sorry I might be mixing up function names, and working with v2 personally and function have been renamed. And on my phone right now cannot check. I’ll keep you updated when I make progress.

pmlarocque commented 7 years ago

@Gskflute haven't found it yet 😞

pmlarocque commented 7 years ago

@Gskflute I'll confirm soon but I think I got it, you have to edit AppDelegate.m. I'll slap myself for not reading the documentation well enough.

See point 5 here: https://wix.github.io/react-native-navigation/#/installation-ios

pmlarocque commented 7 years ago

@Gskflute made it work, I was right, it is really the AppDelegate.m see my repo: https://github.com/pmlarocque/fuckingWix

It is with RNN V2.