bamlab / react-native-make

A collection of everyday React Native CLI tools
MIT License
761 stars 87 forks source link

Cannot read property 'split' of undefined. #32

Open nicolasdet opened 4 years ago

nicolasdet commented 4 years ago

I have a bug trying to use this library

step to reproduce :

i can't execute any other command. errorImage

version :

react-native-cli: 2.0.1 react-native: 0.59.9 node: 12.10.0

jinaddavid commented 4 years ago

Having the same issue

aos83137 commented 4 years ago

https://github.com/bamlab/react-native-make/issues/31#issuecomment-602375244

bitlab-code commented 3 years ago

same with RN 0.59.10 and xcode 12.1

rahamin1 commented 3 years ago

I have got this error on:

With RN63.3 it is working on both platforms.

felipebutcher commented 3 years ago

I have a RN 0.59 app which I didn't want to upgrade. So the solution for me was changing the launch_screen.xml like this:

<FrameLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
>
  <ImageView 
    android:src="@drawable/launch_screen"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scaleType="centerCrop"
  >
  </ImageView>
</FrameLayout>

Solution found here: https://github.com/crazycodeboy/react-native-splash-screen/issues/70