@logo-rn/logo-message-control
v0.2.2
Published
<LogoMessageControl/> allows user to launch an alert dialog with the specified title and message.
Downloads
5
Readme
@logo-rn/logo-message-control
allows user to launch an alert dialog with the specified title and message.
Installation
Install the component:
npm i @logo-rn/logo-message-control -s
Usage
Once installed, import the component in your application:
import {LogoMessageControl} from '@logo-rn/logo-message-control';
const [visible, setVisible] = useState(false);
//..
<LogoMessageControl
onOkButtonClicked={() => setVisible(false)}
visible={visible}
displayType={"Toast"}
/>