Creates a flow view controller. You can use it to further configure a view or present it.
flow that you want to present.
Optional
additional params.
FlowViewController — A promise that resolves to a FlowViewController instance.
[DOC] Creating a flow view
const flow = await adapty.getFlow("MY_PLACEMENT");const view = await createFlowView(flow);// Present with default full-screen styleview.present();// Or present with custom style (iOS only)view.present({ iosPresentationStyle: 'page_sheet' }); // or 'full_screen' Copy
const flow = await adapty.getFlow("MY_PLACEMENT");const view = await createFlowView(flow);// Present with default full-screen styleview.present();// Or present with custom style (iOS only)view.present({ iosPresentationStyle: 'page_sheet' }); // or 'full_screen'
— If flow is not found, does not have a no-code view configured or if there is an error while creating a view.
Creates a flow view controller. You can use it to further configure a view or present it.