React Native Api Reference - v2.0.0
    Preparing search index...

    Function setScreenFlash

    • Turns the screen flash on or off for front-camera captures.

      Most front cameras have no flash unit, so the SDK lights the screen instead. A JS app cannot implement the native screen-flash interface, so this takes a flag: true installs the SDK's built-in white overlay, false or null clears it.

      Parameters

      • flash: boolean

      Returns Promise<void>