Function useNativeEventListener

  • React hook so you can listen to the native events. This hook updates the callback even when your state changes.

    Since

    0.1.7

    Parameters

    • eventName: ProgressEventName

      Native progress event name

    • handler: ((data?: any) => void)

      Callback that receives the event data

        • (data?: any): void
        • Parameters

          • Optional data: any

          Returns void

    Returns void