react-native-modal-components
v0.2.5
Published
1. First, install `react-native-modal-components` in your project. Open a Terminal in your project, and run:
Downloads
10
Maintainers
Readme
- First, install
react-native-modal-components
in your project. Open a Terminal in your project, and run:
yarn add react-native-modal-components
- Import selected component
import {
Loading,
Toast,
Prompt,
} from 'react-native-modal-components';
- Basic usage
Loading
<Loading visible={true} />
Toast
const toastState = useState(true);
...
<Toast title="Toast" visibilityState={toastState} />
Prompt
const promptState = useState(true);
...
<Prompt title="Prompt" visibilityState={promptState}/>