1.0.4 • Published 3 years ago
cn-react-native-thebase v1.0.4
✅ Basic components(typography, buttons, inputs, switch etc...)
✅ Suport Themes
Check the exemple (expo application)
npm install cn-react-native-thebase styled-components
if you are using typescript with react-native use:
npm install cn-react-native-thebase styled-components
npm install --save-dev @types/styled-components-react-native
Support and tested platforms
Android | Ios | Web |
---|---|---|
✅ | ❌ | ❌ |
Dependêncies
First Step
Wrap aplication with <ThemeProvider/>
from styled-components
import React from "react"
import { THEME_LIGHT } from "cn-react-native-thebase"
import { ThemeProvider } from "styled-components"
export default function App() {
return (
<ThemeProvider theme={THEME_LIGHT}>
{/* Your app */}
</ThemeProvider>
)
}
Components
- Button
- Input
- Container
- Content
- Row
- Space
- Modal
- Switch
Development
Publishing a new version
Updating main components
npm run update
Compile and generate package files
npm run prepate
Generate a .tgz package to tests
npm pack
Publishing to NPM
npm publish
MIT @ Carlos Costa | 2020