Ignite: Freshly generated app from bowser boilerplate doesn't launch on android while working fine on ios

Created on 19 Feb 2020  路  4Comments  路  Source: infinitered/ignite


Freshly generated app from bowser boilerplate doesn't launch on android while working fine on ios

Steps to reproduce

  • ignite new MyApp -b bowser
  • npm run android

- after build successfully the app crash silently on the emulator

ignite doctor results:

  platform           darwin
  arch               x64
  cpu                4 cores       Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  directory          ignite_demo   /Users/ahmed/Projects/ignite_demo

JavaScript
  node               12.14.0      /Users/ahmed/.nvm/versions/node/v12.14.0/bin/node
  npm                6.13.4       /Users/ahmed/.nvm/versions/node/v12.14.0/bin/npm
  yarn               1.21.1       /Users/ahmed/.nvm/versions/node/v12.14.0/bin/yarn

Ignite
  ignite-cli           3.5.1                                                                                                        /Users/ahmed/.nvm/versions/node/v12.14.0/bin/ignite
  ignite src           build                                                                                                        /Users/ahmed/.nvm/versions/node/v12.14.0/lib/node_modules/ignite-cli/build
  navigation           react-navigation
  generators           {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}
  createdWith          3.5.1
  boilerplate          ignite-bowser
  boilerplateVersion   4.13.0

Android
  java               12.0.2       /usr/bin/java
  android home       -            /Users/ahmed/Library/Android/sdk

iOS
  xcode              11.3.1
  cocoapods          1.8.4        /usr/local/bin/pod

Most helpful comment

@is343
https://github.com/react-navigation/react-navigation/issues/6897

add in android/app/bundle.grandle

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

All 4 comments

Found that the problem is due to missing steps in react-native-screens, and found the solution here https://github.com/react-navigation/react-navigation/issues/6267#issuecomment-528883756

thos 2 lines need to be added to the generated code i guess

@a-atalla this fixed it for me.
I also started a fresh build today and Android was crashing immediately.

@is343
https://github.com/react-navigation/react-navigation/issues/6897

add in android/app/bundle.grandle

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

Thanks for the issue _and_ for the problem, @a-atalla! I'll check that link and see what I can do :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

besingamkb picture besingamkb  路  3Comments

GantMan picture GantMan  路  3Comments

TitanKing picture TitanKing  路  3Comments

NikitaVr picture NikitaVr  路  3Comments

ron-liu picture ron-liu  路  4Comments