Skip to content

Commit 298e822

Browse files
committed
Add animations to example app
1 parent 8f417dc commit 298e822

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Property | Description
109109
`enableDefaultShare` (Boolean) | Adds a default share item to the menu. [`true`/`false`]
110110
`animations` (Object) | Sets the start and exit animations. [`{ startEnter, startExit, endEnter, endExit }`]
111111
`headers` (Object) | The data are key/value pairs, they will be sent in the HTTP request headers for the provided url. [`{ 'Authorization': 'Bearer ...' }`]
112+
`forceCloseOnRedirection` (Boolean) | Open Custom Tab in new task to avoid issues redirecting back to app scheme. [`true`/`false`]
112113
113114
### Demo
114115
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shareInterpolator="false" >
4+
<translate android:duration="500" android:fromXDelta="-100%" android:toXDelta="0%"/>
5+
<alpha android:duration="500" android:fromAlpha="0.0" android:toAlpha="1.0" />
6+
</set>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shareInterpolator="false" >
4+
<translate android:duration="500" android:fromXDelta="100%" android:toXDelta="0%" />
5+
<alpha android:duration="500" android:fromAlpha="0.0" android:toAlpha="1.0" />
6+
</set>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shareInterpolator="false" >
4+
<translate android:duration="500" android:fromXDelta="0%" android:toXDelta="-100%"/>
5+
<alpha android:duration="500" android:fromAlpha="1.0" android:toAlpha="0.0" />
6+
</set>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shareInterpolator="false" >
4+
<translate android:duration="500" android:fromXDelta="0%" android:toXDelta="100%"/>
5+
<alpha android:duration="500" android:fromAlpha="1.0" android:toAlpha="0.0" />
6+
</set>

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "jest",
88
"lint": "eslint App.js",
99
"ios": "react-native run-ios",
10-
"android": "react-native run-android",
10+
"android": "npx react-native run-android",
1111
"bundle": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
1212
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean --force",
1313
"clean:android": "cd android && ./gradlew clean && cd ..",

0 commit comments

Comments
 (0)