@platformbuilders/react-native-ui
v0.5.0
Published
Platform Builders Shared Components Library
Downloads
140
Readme
@platformbuilders/react-native-ui
Welcome to the @platformbuilders/react-native-ui package here you will find out all of our components shared with the community
Whats the idea of this repository
Its a place that we can share a little bit of our code base and show how we work on our projects with our components!
How can i use the library?
Now it's under development and we will release it soon!
You will need to install some native dependencies that we use on the code:
yarn add lottie-ios lottie-react-native react-native-camera react-native-vector-icons react-native-haptic react-native-image-picker react-native-svg react-native-fast-image react-native-checkbox react-native-smooth-pincode-input react-native-iphone-x-helper && cd ios && pod install
Here's how you add our dependencie to your project @platformbuilders/react-native-ui
- depend on it:
yarn add @platformbuilders/react-native-ui
- import the ThemeProvider from styled-components and provide the Theme following the ThemeType definition.
import { ThemeProvider } from 'styled-components';
import { ThemeType } from '@platformbuilders/react-native-ui';
const theme: ThemeType = { ... };
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
- use it
import { Button } from '@platformbuilders/react-native-ui';