@amazon-devices/lottie-react-native 2.0.9000000000 → 3.0.9000000000-rn-83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SystemBundles/{0f9a823a0428769691985a052cfca6c63d74d3743f6ae4264266f0c4e2f9c458.bundle → 5348273d6ddb469c37c460034b49c8be195775b30d99aba37725f802e3d7f43d.bundle} +4806 -6214
- package/SystemBundles/5348273d6ddb469c37c460034b49c8be195775b30d99aba37725f802e3d7f43d.map +2950 -0
- package/SystemModules/amzn__lottie-react-native-3.modules.txt +13 -0
- package/SystemModules/amzn__lottie-react-native-3.private.modules.txt +62 -0
- package/SystemModules/keplerscript-system-bundle-config.json +3 -3
- package/kepler-compatibility.json +2 -2
- package/lib/commonjs/LottieView.js +3 -3
- package/lib/commonjs/LottieView.js.map +1 -1
- package/lib/commonjs/LottieView.types.js.map +1 -1
- package/lib/commonjs/specs/LottieAnimationViewNativeComponent.js +7 -7
- package/lib/commonjs/specs/LottieAnimationViewNativeComponent.js.map +1 -1
- package/lib/module/LottieView.js +3 -3
- package/lib/module/LottieView.js.map +1 -1
- package/lib/module/LottieView.types.js.map +1 -1
- package/lib/module/specs/LottieAnimationViewNativeComponent.js +7 -7
- package/lib/module/specs/LottieAnimationViewNativeComponent.js.map +1 -1
- package/package.json +98 -1
- package/react-native.config.js +3 -1
- package/src/LottieView.tsx +3 -3
- package/src/LottieView.types.ts +1 -1
- package/src/specs/LottieAnimationViewNativeComponent.ts +8 -8
- package/SystemBundles/0f9a823a0428769691985a052cfca6c63d74d3743f6ae4264266f0c4e2f9c458.map +0 -3805
- package/SystemModules/amzn__lottie-react-native-2.modules.txt +0 -13
- package/SystemModules/amzn__lottie-react-native-2.private.modules.txt +0 -91
package/package.json
CHANGED
|
@@ -1 +1,98 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@amazon-devices/lottie-react-native",
|
|
3
|
+
"version": "3.0.9000000000-rn-83",
|
|
4
|
+
"description": "React Native bindings for Lottie",
|
|
5
|
+
"main": "lib/commonjs/index.js",
|
|
6
|
+
"module": "lib/module/index.js",
|
|
7
|
+
"react-native": "src/index.tsx",
|
|
8
|
+
"types": "lib/typescript/index.d.ts",
|
|
9
|
+
"source": "src/index.tsx",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"files": [
|
|
12
|
+
"SystemBundles",
|
|
13
|
+
"SystemModules",
|
|
14
|
+
"src",
|
|
15
|
+
"lib",
|
|
16
|
+
"android",
|
|
17
|
+
"ios",
|
|
18
|
+
"*.podspec",
|
|
19
|
+
"kepler-compatibility.json",
|
|
20
|
+
"react-native.config.js",
|
|
21
|
+
"THIRD_PARTY_NOTICES.txt",
|
|
22
|
+
"kepler-transformed-package-info.json"
|
|
23
|
+
],
|
|
24
|
+
"author": "Emilio Rodriguez <emiliorodriguez@gmail.com>",
|
|
25
|
+
"homepage": "https://github.com/airbnb/lottie-react-native#readme",
|
|
26
|
+
"license": "See license in LICENSE",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"lottie",
|
|
29
|
+
"animation",
|
|
30
|
+
"react",
|
|
31
|
+
"react-native",
|
|
32
|
+
"keyframe"
|
|
33
|
+
],
|
|
34
|
+
"repository": "https://github.com/react-native-community/lottie-react-native",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/react-native-community/lottie-react-native/issues"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "bob build",
|
|
40
|
+
"build:release": "npm-run-all build",
|
|
41
|
+
"test": "jest",
|
|
42
|
+
"update-api-snapshot": "jest src/__tests__/validate-public-api.test.js -u"
|
|
43
|
+
},
|
|
44
|
+
"//-0": "amznmod_react - Add keplerImport and kepler 3p module aliasing",
|
|
45
|
+
"keplerImport": true,
|
|
46
|
+
"kepler": {
|
|
47
|
+
"temporary-alias-for-package": {
|
|
48
|
+
"name": "lottie-react-native",
|
|
49
|
+
"version": "6.0.0-rc.1"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"//-1": "amznmod_react - change peerDependencies to make it compatible with multiple RNK versions",
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"react": "*",
|
|
55
|
+
"react-native": "*",
|
|
56
|
+
"@amazon-devices/react-native-kepler": "*"
|
|
57
|
+
},
|
|
58
|
+
"//-2": "amznmod_react - change devDependencies to make it compatible with multiple RNK versions",
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@amazon-devices/react-native-kepler": "^3.0.0+rn0.76.2",
|
|
61
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
62
|
+
"@types/jest": "29.5.12",
|
|
63
|
+
"@types/react": "^18.0.18",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
65
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
66
|
+
"eslint": "^7.14.0",
|
|
67
|
+
"eslint-config-prettier": "^6.11.0",
|
|
68
|
+
"eslint-plugin-prettier": "3.1.2",
|
|
69
|
+
"flow-api-translator": "^0.20.1",
|
|
70
|
+
"jest": "^29.2.1",
|
|
71
|
+
"metro-react-native-babel-preset": "^0.64.0",
|
|
72
|
+
"npm-run-all": "^4.1.5",
|
|
73
|
+
"prettier": "^2.2.1",
|
|
74
|
+
"react": "^18.2.0",
|
|
75
|
+
"react-native": "^0.76.2",
|
|
76
|
+
"react-native-builder-bob": "^0.17.1",
|
|
77
|
+
"react-native-windows": "0.76.2",
|
|
78
|
+
"ts-jest": "29.1.2",
|
|
79
|
+
"typescript": "^4.4.4"
|
|
80
|
+
},
|
|
81
|
+
"react-native-builder-bob": {
|
|
82
|
+
"source": "src",
|
|
83
|
+
"output": "lib",
|
|
84
|
+
"targets": [
|
|
85
|
+
"commonjs",
|
|
86
|
+
"module",
|
|
87
|
+
"typescript"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"codegenConfig": {
|
|
91
|
+
"android": {
|
|
92
|
+
"javaPackageName": "com.airbnb.android.react.lottie"
|
|
93
|
+
},
|
|
94
|
+
"name": "lottiereactnative",
|
|
95
|
+
"type": "components",
|
|
96
|
+
"jsSrcsDir": "./src/specs"
|
|
97
|
+
}
|
|
98
|
+
}
|
package/react-native.config.js
CHANGED
package/src/LottieView.tsx
CHANGED
|
@@ -120,10 +120,10 @@ export class AnimatedLottieView extends React.PureComponent<
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
123
|
+
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
124
124
|
// amznmod_react - onAnimationLoad callback
|
|
125
125
|
onAnimationJsonLoad = () => {
|
|
126
|
-
console.warn("onAnimationJsonLoad will be deprecated in favor of onAnimationLoad
|
|
126
|
+
console.warn("onAnimationJsonLoad will be deprecated in favor of onAnimationLoad. Migrate to use onAnimationLoad.")
|
|
127
127
|
if (this.props.onAnimationJsonLoad) {
|
|
128
128
|
this.props.onAnimationJsonLoad();
|
|
129
129
|
}
|
|
@@ -248,7 +248,7 @@ export class AnimatedLottieView extends React.PureComponent<
|
|
|
248
248
|
onAnimationPlay={this.onAnimationPlay}
|
|
249
249
|
onAnimationPause={this.onAnimationPause}
|
|
250
250
|
onAnimationResume={this.onAnimationResume}
|
|
251
|
-
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
251
|
+
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
252
252
|
onAnimationJsonLoad={this.onAnimationJsonLoad}
|
|
253
253
|
/>
|
|
254
254
|
</View>
|
package/src/LottieView.types.ts
CHANGED
|
@@ -232,7 +232,7 @@ export interface AnimatedLottieViewProps extends AccessibilityProps{
|
|
|
232
232
|
*/
|
|
233
233
|
onAnimationLoad?: () => void;
|
|
234
234
|
|
|
235
|
-
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
235
|
+
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
236
236
|
// amznmod_react - add onAnimationJsonLoad callback
|
|
237
237
|
/**
|
|
238
238
|
* A callback function which will be called when animation json load is finished.
|
|
@@ -82,7 +82,7 @@ export interface NativeProps extends ViewProps {
|
|
|
82
82
|
onAnimationPlay?: BubblingEventHandler<EmptyEvent>;
|
|
83
83
|
onAnimationPause?: BubblingEventHandler<EmptyEvent>;
|
|
84
84
|
onAnimationResume?: BubblingEventHandler<EmptyEvent>;
|
|
85
|
-
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
85
|
+
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
86
86
|
onAnimationJsonLoad?: BubblingEventHandler<EmptyEvent>;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -127,38 +127,38 @@ const viewConfig = {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
const bubblingEventTypes = {
|
|
130
|
-
|
|
130
|
+
topAnimationFinish: {
|
|
131
131
|
phasedRegistrationNames: {
|
|
132
132
|
bubbled: 'onAnimationFinish',
|
|
133
133
|
captured: 'onAnimationFinishCapture'
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
-
|
|
136
|
+
topAnimationLoad: {
|
|
137
137
|
phasedRegistrationNames: {
|
|
138
138
|
bubbled: 'onAnimationLoad',
|
|
139
139
|
captured: 'onAnimationLoadCapture'
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
|
-
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
143
|
-
|
|
142
|
+
// PROJ*-136246 - deprecate onAnimationJsonLoad
|
|
143
|
+
topAnimationJsonLoad: {
|
|
144
144
|
phasedRegistrationNames: {
|
|
145
145
|
bubbled: 'onAnimationJsonLoad',
|
|
146
146
|
captured: 'onAnimationJsonLoadCapture'
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
topAnimationPlay: {
|
|
150
150
|
phasedRegistrationNames: {
|
|
151
151
|
bubbled: 'onAnimationPlay',
|
|
152
152
|
captured: 'onAnimationPlayCapture'
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
-
|
|
155
|
+
topAnimationPause: {
|
|
156
156
|
phasedRegistrationNames: {
|
|
157
157
|
bubbled: 'onAnimationPause',
|
|
158
158
|
captured: 'onAnimationPauseCapture'
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
|
-
|
|
161
|
+
topAnimationResume: {
|
|
162
162
|
phasedRegistrationNames: {
|
|
163
163
|
bubbled: 'onAnimationResume',
|
|
164
164
|
captured: 'onAnimationResumeCapture'
|