Closed sharingjingang050241 closed 5 years ago
emmmmmmmmmmm, This is my problem,sorry please close this .
Can you explain what was wrong... Instead of just closing this? I'm facing the same issue
@albert-carreras I had the problem too, but the solution is on the readme x).
In your manifest, you probably forgot to remove the default <intent-filter>
lines from your original activity (.MainActivity)
Keep only the <intent-filter>
of the 2nd activity ('com.zoontek.rnbootsplash.RNBootSplashActivity') :
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
So your manifest should be like something like that:
<application
android:name=".MainApplication"
...
>
<activity
android:name=".MainActivity"
android:exported="true"
...
>
</activity>
<activity
android:name="com.zoontek.rnbootsplash.RNBootSplashActivity"
android:theme="@style/BootTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- … -->
</application>
Thank you for the heads up. Fixed it for me as well. It seemed to only happen when I used the --logo-width=500
from the command line for some reason.
💻 My environment
🕵️♂️ Reproducing the issue
react-native run-android two applications appear?
AndroidManifest.xml
MainActivity.java