junedomingo / movieapp

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

App not launching on Android or iOS #7

Closed dhammikab closed 7 years ago

dhammikab commented 7 years ago

I have tried to compile and launch the app using the latest source, but I don't get anything in Genymotion.

With the iOS emulator, I get a "basic" (aka the default RN screen white background / just saying MobileApp).

simulator screen shot feb 4 2017 5 55 51 pm

Could this be due to an incompatibility with a new version of RN ?

dhammikab commented 7 years ago

I did create the .env file as per your instructions.

dhammikab commented 7 years ago

when I looked at the android debug logs I found the following:

02-04 20:10:33.916 1010 1198 E Surface : getSlotFromBufferLocked: unknown buffer: 0xee975c60 02-04 20:10:33.971 2424 2424 I art : Thread[1,tid=2424,Native,Thread*=0xf3d74a00,peer=0x7368a258,"main"] recursive attempt to load library "/data/app/com.movieapp-1/lib/x86/libfb.so" 02-04 20:10:34.363 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager 02-04 20:10:34.364 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode 02-04 20:10:34.368 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode 02-04 20:10:34.372 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode 02-04 20:10:34.373 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager 02-04 20:10:34.382 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode 02-04 20:10:34.395 2424 2444 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 02-04 20:10:34.421 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager 02-04 20:10:34.427 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode 02-04 20:10:34.428 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager 02-04 20:10:34.476 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager 02-04 20:10:34.476 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager 02-04 20:10:34.478 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager 02-04 20:10:34.482 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager 02-04 20:10:34.484 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode 02-04 20:10:34.484 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager 02-04 20:10:34.487 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode 02-04 20:10:34.488 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager 02-04 20:10:34.489 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode 02-04 20:10:34.493 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager 02-04 20:10:34.494 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager 02-04 20:10:34.495 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode 02-04 20:10:34.495 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager 02-04 20:10:34.498 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode 02-04 20:10:34.499 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager 02-04 20:10:34.499 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode 02-04 20:10:34.503 2424 2424 D : HostConnection::get() New Host Connection established 0xe808c110, tid 2424 02-04 20:10:34.503 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager 02-04 20:10:34.510 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode 02-04 20:10:34.510 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager 02-04 20:10:34.510 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager 02-04 20:10:34.512 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager 02-04 20:10:34.519 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager 02-04 20:10:34.526 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager 02-04 20:10:34.528 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager 02-04 20:10:34.533 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.recyclerview.RecyclerViewBackedScrollViewManager 02-04 20:10:34.537 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager 02-04 20:10:34.539 2424 2442 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.BV.LinearGradient.LinearGradientManager 02-04 20:10:34.650 2424 2444 D libEGL : loaded /system/lib/egl/libEGL_emulation.so

dhammikab commented 7 years ago

I deleted everything and tried using Yarn ...as per a previous problem that had been reported.

Dhammikas-iMac:movieapp dhammika$ yarn install yarn install v0.20.0 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "jest-react-native@16.0.0" has unmet peer dependency "whatwg-fetch@^1.0.0". [4/4] 📃 Building fresh packages... ✨ Done in 20.23s.

but still no luck, same error as before. - Android shows a blank screen, iOS shows a screen as per my screen shot above.

dhammikab commented 7 years ago

restarting the packager resolved my issue !