Skip to content

Commit 7e891ef

Browse files
authored
Merge pull request lottie-react-native#455 from bondparkerbond/react-native-quick-fix
basic compatibility for react-native .59
2 parents c5c1185 + 5493689 commit 7e891ef

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.6.0 (March 18, 2019)
2+
3+
- Add Android app compatability support for RN 0.59 on Android (#455)
4+
15
## 2.5.11 (December 20, 2018)
26

37
- Improved documentation

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ For android, you can `react-native link` as well:
4040
react-native link lottie-react-native
4141
```
4242

43+
## React Native Version Note:
44+
45+
React Native 0.59 included several significant changes to support 64-bit Android. Those who are on react-native versions BELOW 0.59.0 should continue using lottie-react-native 2.5.11.
46+
47+
Those using react-native 0.59+ without AndroidX can use lottie-react-native 2.6.0, which includes backwards compatibility for older SDK versions that Lottie currently relies upon.
48+
49+
Those on 0.59+ wanting out of the box AndroidX support should follow [this issue](https://github.com/react-native-community/lottie-react-native/issues/443).
50+
4351
# Usage
4452

4553
(If you are using TypeScript, please read [this first](/docs/typescript.md))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lottie-react-native",
3-
"version": "2.5.11",
3+
"version": "2.6.0",
44
"description": "React Native bindings for Lottie",
55
"main": "lib/index.js",
66
"types": "src/js/index.d.ts",

src/android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ android {
2727

2828
dependencies {
2929
compileOnly "com.facebook.react:react-native:+"
30+
api 'com.android.support:appcompat-v7:28.0.0'
3031
implementation 'com.airbnb.android:lottie:2.6.0'
3132
}

0 commit comments

Comments
 (0)