Skip to content

Commit 7f4c9a4

Browse files
committed
Release 2.2.0
Resolve #49 #48
1 parent d4c98c1 commit 7f4c9a4

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ jobs:
2222
- name: Build typescript
2323
run: yarn build
2424

25-
- name: Remove dist (to test `tsx`)
26-
run: rm -rf ./lib
27-
2825
- name: Test
2926
run: yarn test --coverage
3027

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[2.2.0]
2+
Fix typescript not being exposed during deploy. [#49](https://github.com/hyochan/react-native-switch-toggle/issues/49)
3+
4+
Fix transition `inputRange` start from `0` [#48](https://github.com/hyochan/react-native-switch-toggle/issues/48).
5+
16
[2.0.1]
27
Update readme.
38

index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function SwitchToggle(props: Props): React.ReactElement {
153153
props.circleStyle,
154154
{
155155
backgroundColor: animXValue.interpolate({
156-
inputRange: [0.5, 1],
156+
inputRange: [0, 1],
157157
outputRange: [
158158
circleColorOff as string | number,
159159
circleColorOn as string | number,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-switch-toggle",
3-
"version": "2.1.1",
3+
"version": "2.2.0",
44
"description": "Highly customizable animating react native switch toggle component.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)