@boneframework/native-components 1.0.33 → 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", animationPath = '../../../../assets/animations/loader.json'}) {
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={require(animationPath)}
38
+ source={animationSource}
39
39
  autoPlay={true}
40
40
  loop={true}
41
41
  style={{height: 100, width: 100, opacity: 1}}
@@ -1,4 +1,4 @@
1
- import React, {useEffect, useRef} from 'react';
1
+ import React, {useRef} from 'react';
2
2
  import LottieView from "lottie-react-native";
3
3
 
4
4
  function Animation({source, style = {}, onAnimationFinish = () => {}, autoPlay = true, loop = true, speed = 1.5}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boneframework/native-components",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "Expo Components for Bone Framework",
5
5
  "main": "src/Bone.ts",
6
6
  "scripts": {