React Pakistan is an OpenSource & Free Software (FOSS) platform, creating React software solutions for the global community. βββ
A generic, Logo library for React Native apps, following modern approach by building your project's UI in isolation using state of the art Storybook along with React.
- Technology Stack β¨
- Installation β¨
- Usage β¨
- Styles β¨
- Tested β¨
- Contributors β¨
- Other Libraries from ReactPakistan β¨
- Support β¨
- Contact β¨
- Buy Me Coffee β¨
- React β¨
- React Native β¨
- Storybook β¨
- TypeScript β¨
- JavaScript β¨
- Styled Components β¨
- Jest β¨
- Eslint β¨
- You should have React Native environment setup, prior proceeding with the following steps, if you don't please refer to React Native Getting Started docs to setup that.
- Clone the repo
- Cd into the project folder
- Figure out which package manager you have on your system, then run following commands for their specific use cases.
// to install dependencies
yarn
// to build and run app on ios Simulator
yarn ios
// to build and run app on android Simulator
yarn android
// to run all tests locally
yarn test
OR
// to install dependencies
npm install
// to build and run app on ios Simulator
npm run ios
// to build and run app on android Simulator
npm run android
// to run all tests locally
npm test
Add React Native Logo Collection to your project.
yarn add @react-pakistan/react-native-logo-collection
OR
npm install @react-pakistan/react-native-logo-collection
Add React Native Logo Collection base theme to your project.
yarn add @react-pakistan/util-react-native-functions
OR
npm install @react-pakistan/util-react-native-functions
Refer to React Pakistan Docs for detail usage docs.
Styled Components are employed to maintain and update theme for this project. Please consider adding Styled Component Provider wrapper to the entry point of your application, following is the sample code. You could either use the default theme as shown below or wire your custom theme object instead.
import { ThemeProvider } from 'styled-components';
import { theme } from '@react-pakistan/util-functions';
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
Since we wrote a script that generates all the logos on the fly, we don't feel the need to test all 1000's of React SVG components.
Should you like this project and would like to see more coming in future, please consider giving a β on Github project repo.
Thanks goes to these wonderful people (emoji key):
Contributors | GitHub | Emoji |
---|---|---|
Taimoor Khan | π¨π€π§ππ |
If you need any help or have any question, please feel free to join ReactPakistan community at React Pakistan Slack.
I can be reachable via Taimoor Web or else should you wish to send over an expression of your interest to contribute towards ReactPakistan, please shoot an email.