```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
}
}
`
Pushes a modal onto the stack
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
} }`