如何在IOS中创建两个类似android的活动(React Native)?
我想制作一个应用程序,该应用程序将有两个在IOS中具有不同应用程序启动图标的活动(React Native) 我用安卓系统做了这个。代码如下所示如何在IOS中创建两个类似android的活动(React Native)?,ios,react-native,Ios,React Native,我想制作一个应用程序,该应用程序将有两个在IOS中具有不同应用程序启动图标的活动(React Native) 我用安卓系统做了这个。代码如下所示 <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".NotifierActivity"
android:label="SOS"
android:icon="@mipmap/ic_launcher_sos"
android:roundIcon="@mipmap/ic_launcher_sos_round"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
我是初学者。所以,我非常需要你的帮助
作为mainfest的一个例子,如果您正在寻求更多帮助,请告诉我。
您需要在app/AndroidManifest.xml中添加此文件
我正在搜索像您的android一样的IOS解决方案。如果您有IOS解决方案,请与AppDelegate.m中的mecheck launchOptions选项和您可以添加到IOS/projectname/Image.xAssets中的图标共享。您应该使用xcode来完成此操作。我正在使用xcode。如果你有IOS的样品,请提供给我
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:usesCleartextTraffic="true"
>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".NotifierActivity"
android:label="SOS"
android:icon="@mipmap/ic_launcher_sos"
android:roundIcon="@mipmap/ic_launcher_sos_round"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>