@boneframework/native-components 1.0.32 → 1.0.34
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,7 +4,7 @@ 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
10
|
const styles = StyleSheet.create({
|
|
@@ -35,7 +35,7 @@ function ActivityIndicator({ visible = false , type="default", animationPath = '
|
|
|
35
35
|
return (
|
|
36
36
|
<View style={style}>
|
|
37
37
|
<Animation
|
|
38
|
-
source={
|
|
38
|
+
source={animationSource}
|
|
39
39
|
autoPlay={true}
|
|
40
40
|
loop={true}
|
|
41
41
|
style={{height: 100, width: 100, opacity: 1}}
|
package/components/Animation.tsx
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import {StyleSheet, View} from "react-native";
|
|
|
2
2
|
|
|
3
3
|
import Text from '../components/Text';
|
|
4
4
|
import Button from "../components/Button";
|
|
5
|
-
import
|
|
5
|
+
import Image from "../components/Image";
|
|
6
6
|
|
|
7
7
|
import colors from "../../../../config/colors";
|
|
8
8
|
|