Skip to content

Commit

Permalink
Release 2.2.0
Browse files Browse the repository at this point in the history
Resolve #49 #48
  • Loading branch information
hyochan committed Jul 12, 2021
1 parent d4c98c1 commit 7f4c9a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
- name: Build typescript
run: yarn build

- name: Remove dist (to test `tsx`)
run: rm -rf ./lib

- name: Test
run: yarn test --coverage

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[2.2.0]
Fix typescript not being exposed during deploy. [#49](https://github.com/hyochan/react-native-switch-toggle/issues/49)

Fix transition `inputRange` start from `0` [#48](https://github.com/hyochan/react-native-switch-toggle/issues/48).

[2.0.1]
Update readme.

Expand Down
2 changes: 1 addition & 1 deletion index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function SwitchToggle(props: Props): React.ReactElement {
props.circleStyle,
{
backgroundColor: animXValue.interpolate({
inputRange: [0.5, 1],
inputRange: [0, 1],
outputRange: [
circleColorOff as string | number,
circleColorOn as string | number,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-switch-toggle",
"version": "2.1.1",
"version": "2.2.0",
"description": "Highly customizable animating react native switch toggle component.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit 7f4c9a4

Please # to comment.