0.0.9 • Published 3 years ago
native-pilot-ui v0.0.9
List of Components
(https://native-pilot-ui.netlify.app)
To run on the web use
yarn storybookTo run on ios
yarn iosTo run on android
yarn androidAuto Update Story
yarn update-storiesInstallation
In your project root folder run the following command
yarn add native-pilot-uior
npm i native-pilot-uiUsage
In your project entry point make sure you have added the theme provider
import React from 'react';
import { ThemeProvider } from 'native-pilot-ui';
const Main = () => {
return (
<ThemeProvider theme={'app'}>
<MainRoutes />
</ThemeProvider>
);
};
export default Main;Example usage of component
import { Button } from 'native-pilot-ui';
const Example = () => {
return (
<Button onClick={() => console.log('button clicked')}>
click here
</Button>
)
}The uikit is type annotated so that you can easily find all the available options for themes. Some of the Theme options are
- app
- drug
- church