@code503/sds-react-native-components v0.0.4
2600Hz - Commio
SDS React Native Components Library
Library that contains all sharable components for all react native applications development
Installation
yarn add @2600hz/sds-react-native-componentsUsage
import { Button, Telicon } from "@2600hz/sds-react-native-components";
// ...
<Button onPress={handleCall} title="Call" color="#aaffcc" />
<View>
<Telicon
name="volume-x"
size="xsmall"
fill="green"
fillSecondary="pink"
/>
</View>Development
This project requires Node.js v14+ to run.
Using .nvmrc file helps to normalize node version used by all maintainers. If you are required to use version specified in this file, run these commands.
nvm use
nvm installUse the package manager yarn v1+ to install dependencies and devDependencies.
yarn install
yarnCreate symlink Run the following command on package root folder, so you can consume on an app locally
yarn linkWatch project Build package whenever there is a change
yarn watchConsume the package
Both projects must be placed on same folder, otherwise won't work
yarn link @2600hz/sds-react-native-componentsBuild the package
Automatically will run bob build
yarnRun project
yarn installRun android
yarn androidRun ios
cd ios & pod install
yarn iosUtilities
Format code using Eslint
yarn run lint:fixFormat code using Prettier
yarn run formatFormat code using Prettier and Eslint
yarn run prettifyCheck Typescript on files
yarn run typescriptRun full check
yarn run full-checkTech
Dillinger uses a number of open source projects to work properly:
- React.js - JavaScript library for building user interfaces.
- React Native - JavaScript library for creating native apps for Android and IOS using React.
- Typescript - Strongly typed programming language which builds on JavaScript
- NodeJs - Allows execute javascript scripts on the terminal
- Storybook - Development environment for UI components
- Luxon - library for dealing with dates and times in JavaScript (better alternative than Moment.js)
- Styled-Components - Library to style react components
- react-native-svg - Provides SVG support to React Native on iOS and Android, and a compatibility layer for the web
- create-react-native-library - CLI to scaffold React Native libraries
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
See the contributing guide to learn how to contribute to the repository and the development workflow.
Commits Commits must follow conventional commit format Make sure your messages look like the following examples
feat: Adding new badge component
fix: Touchable component not being exported correctlyLicense
MIT