@boneframework/native-components 1.0.23 → 1.0.25
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/package.json +3 -2
- package/screens/UploadScreen.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boneframework/native-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Expo Components for Bone Framework",
|
|
5
5
|
"main": "src/Bone.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"lottie-react-native": "^6.7.2",
|
|
47
47
|
"react": "18.2.0",
|
|
48
48
|
"react-native-progress": "^5.0.1",
|
|
49
|
-
"yup": "^1.4.0"
|
|
49
|
+
"yup": "^1.4.0",
|
|
50
|
+
"expo-location": "~17.0.1"
|
|
50
51
|
}
|
|
51
52
|
}
|
package/screens/UploadScreen.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import colors from '../../../../config/colors'
|
|
|
6
6
|
import Text from '../components/Text'
|
|
7
7
|
import Animation from "../components/Animation";
|
|
8
8
|
|
|
9
|
-
function UploadScreen({onDone, progress = 0, visible = false}) {
|
|
9
|
+
function UploadScreen({onDone, progress = 0, visible = false, animationSource = '../../../../assets/animations/done.json'}) {
|
|
10
10
|
return (
|
|
11
11
|
<Modal visible={visible}>
|
|
12
12
|
<View style={styles.container}>
|
|
@@ -16,7 +16,7 @@ function UploadScreen({onDone, progress = 0, visible = false}) {
|
|
|
16
16
|
autoPlay={true}
|
|
17
17
|
loop={false}
|
|
18
18
|
onAnimationFinish={onDone}
|
|
19
|
-
source={require(
|
|
19
|
+
source={require(animationSource)}
|
|
20
20
|
style={styles.animation}
|
|
21
21
|
/>
|
|
22
22
|
}
|