Skip to content

Instantly share code, notes, and snippets.

@dabit3
Created December 2, 2019 14:28
Show Gist options
  • Save dabit3/d4ba2104b204ec5fb7489c26590c0da5 to your computer and use it in GitHub Desktop.
Save dabit3/d4ba2104b204ec5fb7489c26590c0da5 to your computer and use it in GitHub Desktop.
Example React Native Android Manifest with redirect
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rnauth">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTask"
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>
<intent-filter android:label="filter_react_native">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="myapp" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment