@boneframework/native-components 1.0.33 → 1.0.35
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.
|
@@ -4,9 +4,13 @@ import {View, StyleSheet} from "react-native";
|
|
|
4
4
|
import Animation from "./Animation";
|
|
5
5
|
import useStyle from "../hooks/useStyle";
|
|
6
6
|
|
|
7
|
-
function ActivityIndicator({ visible = false , type="default",
|
|
7
|
+
function ActivityIndicator({ visible = false , type="default", animationSource}) {
|
|
8
8
|
const defaultStyles = useStyle();
|
|
9
9
|
|
|
10
|
+
if (!animationSource) {
|
|
11
|
+
animationSource = '../../../../assets/animations/loader.json'
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
const styles = StyleSheet.create({
|
|
11
15
|
overlay: {
|
|
12
16
|
flex:1,
|
|
@@ -35,7 +39,7 @@ function ActivityIndicator({ visible = false , type="default", animationPath = '
|
|
|
35
39
|
return (
|
|
36
40
|
<View style={style}>
|
|
37
41
|
<Animation
|
|
38
|
-
source={
|
|
42
|
+
source={animationSource}
|
|
39
43
|
autoPlay={true}
|
|
40
44
|
loop={true}
|
|
41
45
|
style={{height: 100, width: 100, opacity: 1}}
|
package/components/Animation.tsx
CHANGED
package/hooks/useLinking.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Linking from "expo-linking";
|
|
2
2
|
import {useEffect} from "react";
|
|
3
|
-
import router from '
|
|
3
|
+
import {router} from 'expo-router';
|
|
4
4
|
|
|
5
5
|
import routes from '../../../../config/routes';
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ export default useLinking = () => {
|
|
|
13
13
|
if (parts.path !== null && parts.path !== '') {
|
|
14
14
|
switch (parts.path) {
|
|
15
15
|
case routes.USER_ACTIVATION:
|
|
16
|
-
router.navigate(routes.USER_ACTIVATION, parts.queryParams);
|
|
16
|
+
router.navigate({pathname: routes.USER_ACTIVATION, params: parts.queryParams});
|
|
17
17
|
break;
|
|
18
18
|
}
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import colors from '../../../../config/colors'
|
|
|
9
9
|
function WelcomeScreen({loginOnPress = () => {}, registerOnPress = () => {}, title = 'BONE FRAMEWORK', isLoading = false}) {
|
|
10
10
|
return (
|
|
11
11
|
<ImageBackground blurRadius={10} style={styles.background} source={require('../../../../assets/background.png')} >
|
|
12
|
-
<ActivityIndicator visible={isLoading} type={'overlay'}/>
|
|
12
|
+
<ActivityIndicator visible={isLoading} type={'overlay'} />
|
|
13
13
|
<View style={styles.logoContainer}>
|
|
14
14
|
<Image style={styles.logo} source={require('../../../../assets/logo.png')} />
|
|
15
15
|
<Text style={styles.tagline}>{ title }</Text>
|