You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 441B

1234567891011121314151617
  1. // @flow
  2. import { NativeModules } from 'react-native';
  3. /**
  4. * Enabled/Disables the PictureInPicture mode in PiP native module.
  5. *
  6. * @param {boolean} disabled - Whether the PiP mode should be disabled.
  7. * @returns {void}
  8. */
  9. export function setPictureInPictureDisabled(disabled: boolean) {
  10. const { PictureInPicture } = NativeModules;
  11. if (PictureInPicture) {
  12. PictureInPicture.setPictureInPictureDisabled(disabled);
  13. }
  14. }