@logo-rn/logo-form-cell
v0.2.3
Published
<LogoFormCell/> is a singleline item to take quick actions and accesses on the screen.
Downloads
8
Readme
@logo-rn/logo-form-cell
is a singleline item to take quick actions and accesses on the screen.
Installation
Install the component:
npm i @logo-rn/logo-form-cell -s
Usage
Once installed, import the component in your application:
import {LogoFormCell} from '@logo-rn/logo-form-cell';
const [isSwitchOn, setIsSwitchOn] = React.useState(false);
const onToggleSwitch = () => setIsSwitchOn(!isSwitchOn);
//..
<LogoFormCell>
<LogoFormCell.Header style={{ marginTop: 44 }} text="Ayarlar" />
<LogoFormCell.Switch
title="Bildirimleri göster"
value={isSwitchOn}
onValueChange={onToggleSwitch}
/>
</LogoFormCell>