react-native-adapty - v4.4.1
    Preparing search index...

    Interface AdaptyFlowViewRef

    Imperative handle of AdaptyFlowView.

    interface AdaptyFlowViewRef {
        sendAppMessage(payload: AdaptyFlowMessage): Promise<void>;
    }
    Index

    Methods

    • Sends a message from the app to the script of this flow (applicationMsg).

      Parameters

      Returns Promise<void>

      Addressed to the view configuration of the last committed render, fixed at call time. Send from onAppeared or later when the script must handle it: before the native view registered the call rejects.

      Resolves when native accepted the message, not when the script handled it.

      if native rejects the call (e.g. the native view is not registered yet)

      'View reference not found' (a plain Error, without a bridge call) after the component unmounted