React Native Android Pip Module
npm install react-native-android-pipEnsure that Android SDK > 24 and include in your AndroidManifest.xml activity:
android:resizeableActivity="true"
android:supportsPictureInPicture="true"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|smallestScreenSize|orientation"
$ npm install react-native-android-pip --save
$ react-native link react-native-android-pip
#### Android
1. Open up android/app/src/main/java/[...]/MainActivity.java
- Add import com.reactlibrary.RNAndroidPipPackage; to the imports at the top of the file
- Add new RNAndroidPipPackage() to the list returned by the getPackages() method
2. Append the following lines to android/settings.gradle:
```
include ':react-native-android-pip'
project(':react-native-android-pip').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-pip/android')
android/app/build.gradle
3. Insert the following lines inside the dependencies block in :`
`
compile project(':react-native-android-pip')
javascript
import AndroidPip from 'react-native-android-pip';AndroidPip.enterPictureInPictureMode()
``