Skip to main content

👨‍💻 Installation

Installing the Rn-pip package is as simple as running a single command, making it effortlessly accessible for all developers.

You can install Rn-pip via any of your favourite package managers; NPM , Yarn or Pnpm

npm install rn-pip

Requirements

Rn-pip is optimized for building mordern apps. To have a seemless integration, ensure to have the following ;

  • Nodejs version 16 or above (which can be checked by running node -v). With nvm, several Node versions installed on a single machine may be managed.

  • React Native version 0.70 or above

  • Platform Support: The PiP functionality of Rn-pip is currently limited to Android due to native platform limitations.

  • Android Version : Android 8.0 (API level 26)

  • AndroidManifest.xml Configuration:

    • Add android:supportsPictureInPicture="true" to the activity declaration for the video component.
    • Consider including android:resizeableActivity="true" for better PiP window resizing behavior (optional).