1.0.4 • Published 3 years ago

cn-react-native-thebase v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Node.js CI Coverage Status License: MIT Check live example

✅ 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

AndroidIosWeb

Dependêncies

Styled components

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

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago