Skip to content

Commit

Permalink
Prepare for release version 0.0.1 (#43)
Browse files Browse the repository at this point in the history
* docs: update README for debugging components

* docs: remove example commands in package.json, update the README file

* feat: checkbox component

* chore: add assets folder

* chore: update using styled-component

* chore: add babel-jest and update jest (#28)

* fix: fix comment and update component to use reanimated

* chore: update some value from theme

* feat: install reanimated (#38)

* feat: install reanimated

* feat: install gesture handler

* chore: add base theme (#32)

* chore: add base theme

* chore: update default theme

* chore: update button component

* chore: update base theme

* chore: update define name sizes

* chore: update opacity name

* chore: update name component

---------

Co-authored-by: loidev <[email protected]>

* docs: write doc theme (#33)

* docs: write doc theme

* chore: add ts in code example

* chore: fix spelling mistake

* chore: fix spelling mistake

* chore: update doc

* chore: update doc

* chore: update docs

* docs: update doc theme

* chore: update opacity names

* chore: update doc

---------

Co-authored-by: loidev <[email protected]>

* feat: update component and test case

* Merge pull request #41

* chore: export component

* chore: fix eslint

* feat: text base component (#34)

* feat: text base component

* chore: update styled-component, jest test

* chore: change BaseText to Text

* chore: change BaseText to Text

* chore: fix prettier and eslint

* feat: update metrics typescript return the value instead of number

* feat: separate Text Component

* chore: remove fontWeight

* chore: update text document

---------

Co-authored-by: Anh Le <[email protected]>
Co-authored-by: BaoNH <[email protected]>

* feat: publish test result (#37)

* feat: publish test result

* feat: change name

* fix: remove cat test-result

* feat: update test result

* fix: remove run test with coverage

* chore: update workflow file name

---------

Co-authored-by: Anh Le <[email protected]>

* chore: update PR comment

* chore: remove magic number

* feat: code input (#23)

* feat: code input

* chore: update with theme

* chore: update component using reanimated

* chore: update PR comment

* chore: update example package.json

* feat: update PR comment

* chore: update code convention

* chore: update test cases

* fix: type check

* feat: progress component (#27)

* feat: update indeterminate progress

* chore: update progress style

* chore: update file location

* chore: update jest test

* chore: update react-native-reanimated

* chore: update jest test

* chore: update export component

* fix: update unitest

---------

Co-authored-by: ThinhKimVo <[email protected]>
Co-authored-by: chung.nguyenh <[email protected]>

* feat: radio button component (#24)

* feat: radio button component

* feat: update styles

* chore: update location files

* chore: test react-native-reanimated

* chore: Update button radio

* chore: update react-native-reanimated

* chore: update theme

* chore: update comment

* chore: remove unused code

* chore: update export component

* chore: update comments

* chore: merge with dev

* chore: fix typescript error

* Merge pull request #41

* chore: export component

* chore: fix eslint

* feat: text base component (#34)

* feat: text base component

* chore: update styled-component, jest test

* chore: change BaseText to Text

* chore: change BaseText to Text

* chore: fix prettier and eslint

* feat: update metrics typescript return the value instead of number

* feat: separate Text Component

* chore: remove fontWeight

* chore: update text document

---------

Co-authored-by: Anh Le <[email protected]>
Co-authored-by: BaoNH <[email protected]>

* feat: publish test result (#37)

* feat: publish test result

* feat: change name

* fix: remove cat test-result

* feat: update test result

* fix: remove run test with coverage

* chore: update workflow file name

---------

Co-authored-by: Anh Le <[email protected]>

* feat: radio button component

* feat: update styles

* chore: update location files

* chore: test react-native-reanimated

* chore: update react-native-reanimated

* chore: update comment

* chore: fix typescript error

* feat: update radio button stories

---------

Co-authored-by: loido <[email protected]>
Co-authored-by: nghoangchung282 <[email protected]>
Co-authored-by: BaoNH <[email protected]>
Co-authored-by: TranQuangPhi <[email protected]>
Co-authored-by: ThinhKimVo <[email protected]>

---------

Co-authored-by: BaoNH <[email protected]>
Co-authored-by: ngochuyduong <[email protected]>
Co-authored-by: ngochuyduong <[email protected]>
Co-authored-by: TranQuangPhi <[email protected]>
Co-authored-by: loido <[email protected]>
Co-authored-by: loidev <[email protected]>
Co-authored-by: nghoangchung282 <[email protected]>
Co-authored-by: Anh Le <[email protected]>
Co-authored-by: ThinhKimVo <[email protected]>
Co-authored-by: anhle10051996 <[email protected]>
Co-authored-by: chung.nguyenh <[email protected]>
  • Loading branch information
12 people authored Aug 14, 2023
1 parent 5329017 commit fc4c490
Show file tree
Hide file tree
Showing 65 changed files with 6,673 additions and 4,083 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/action_run_unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run unit test

on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
unit-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: yarn install

- name: Comment with Test Coverage
uses: dkershner6/jest-coverage-commenter-action@v1
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
comment_prefix: "## Test Result"

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ React Native Base Component
npm install rn-base-component
```

## Preview/Debug Components

```sh
yarn bootstrap
yarn example ios/android
```

## Update Storybook (Debug purpose only)

To update Storybook after running it on the Simulator and adding new components or updating existing ones, run the following command.
```sh
yarn example update-stories
```

## Documents

- [Jest Configuration](/docs/jest-config.md)
Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['react-native-reanimated/plugin'],
}
28 changes: 28 additions & 0 deletions docs/component-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Text Component

React Native Base Text Component

This component extends from React Native Text
with some variants

## Usage

```js
import {Text, TextBold, TextItalic} from 'rn-base-component';

<Text> Text font normal </Text>
<TextBold> Text font bold </TextBold>
<TextItalic> Text font italic </TextItalic>
```


## Default Props

| Variant | Default Props |
|:-------:|:----------------------------------------------------------------------------------------------:|
| Text | fontSize: metrics.span <br/>color: colors.black<br/>fontFamily: typography.fonts.regular<br/> |
| Bold | fontFamily: typography.fonts.bold |
| Italic | fontStyle: italic |

---

Loading

0 comments on commit fc4c490

Please sign in to comment.