From 7f4c9a4fbf8c6539531b749dea525abc0e2327de Mon Sep 17 00:00:00 2001 From: Hyo Date: Mon, 12 Jul 2021 17:16:40 +0900 Subject: [PATCH] Release 2.2.0 Resolve #49 #48 --- .github/workflows/ci.yml | 3 --- CHANGELOG.md | 5 +++++ index.tsx | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a13ec8d..dbfb1d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index b4fa01b..57b7916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/index.tsx b/index.tsx index 7e3bb3b..b4bb82e 100644 --- a/index.tsx +++ b/index.tsx @@ -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, diff --git a/package.json b/package.json index 2bdce45..dfa590e 100644 --- a/package.json +++ b/package.json @@ -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",