Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/modal"

Index

Functions

Functions

modal

  • Pushes a modal onto the stack

    example
    screen/Main/Component.tsx ```ts import * as React from 'react'; import { modal } from '@ef-carbon/react-native-navigation';

    export class MyScreen extends React.PureComponent { private readonly showModal = (): void => { const instance = modal(This will be shown in the modal); instance.visible; // -> true // Some point later instance.close(); instance.visible; // -> false } } `

    Parameters

    • node: React.ReactNode

      the elements to render inside the modal

    • Default value options: IModalOptions = {}

    Returns IModal

    the interface to programatically close the modal