1.0.4 • Published 4 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-componentsif you are using typescript with react-native use:
npm install cn-react-native-thebase styled-components
npm install --save-dev @types/styled-components-react-nativeSupport 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 updateCompile and generate package files
npm run prepateGenerate a .tgz package to tests
npm packPublishing to NPM
npm publishMIT @ Carlos Costa | 2020