0.1.5 • Published 10 months ago
react-native-tillring-components v0.1.5
react-native-tillring-components
React native component library for tillring apps.
Installation
npm install react-native-tillring-components
or
yarn add react-native-tillring-components
Usage
import { useState } from 'react';
import { Container, Typography, Separator, ToggleButton } from 'react-native-tillring-components';
// ...
const App = () => {
const [isActive, setIsActive] = useState(false)
return (
<Container flex1 row aCenter jBetween>
<Typography h1 semibold>
Hello
</Typography>
<Separator width={10}>
<Typography h1 semibold>
World!
</Typography>
<ToggleButton isEnabled={isActive} setIsEnabled={() => setIsActive(!isActive)}/>
</Container>
)
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library