Skip to content

Commit

Permalink
Merge pull request #6 from harsh25jai/0.0.8
Browse files Browse the repository at this point in the history
0.1.0
  • Loading branch information
harsh25jai authored Jul 8, 2021
2 parents 150af3b + 321cea2 commit bdda875
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-advance-image",
"version": "0.0.8",
"version": "0.1.0",
"description": "An Advanced Image component supporting multiple props and methods to show image on react native application in a better way.",
"main": "index.tsx",
"scripts": {
Expand All @@ -26,12 +26,12 @@
"url": "https://github.com/harsh25jai/react-native-advance-image"
},
"dependencies": {
"@react-native-masked-view/masked-view": "^0.2.5",
"@react-native-community/masked-view": "^0.1.11",
"react": ">=16.0.1",
"react-native": ">=0.60.0"
},
"peerDependencies": {
"@react-native-masked-view/masked-view": "^0.2.5",
"@react-native-community/masked-view": ">=0.1.11",
"react": ">=16.0.1",
"react-native": ">=0.60.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/AdvanceImageBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ interface AdvanceImageProps {
children?: React.ReactNode;
}

export default function AdvanceImage({
export default function AdvanceImageBackground({
style,
source,
resizeMode,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import React, { Children, useCallback, useEffect, useMemo, useState } from 'react';
import { View, Dimensions, Animated, Easing, StyleSheet } from 'react-native';
import MaskedView from '@react-native-masked-view/masked-view';
import MaskedView from '@react-native-community/masked-view';

const SCREEN_WIDTH = Dimensions.get("window").width;
export default ({ children, backgroundColor = "#E1E9EE", speed = 800, highlightColor = "#F2F8FC", ...props }) => {

interface SkeletonPlaceholderProps {
children?: any;
backgroundColor?: any;
speed?: any;
highlightColor?: any;
}
export default ({ children, backgroundColor = "#E1E9EE", speed = 800, highlightColor = "#F2F8FC", ...props }: SkeletonPlaceholderProps) => {
const [layout, setLayout] = useState();
const animatedValue = useMemo(() => new Animated.Value(0), []);
const translateX = useMemo(() => animatedValue.interpolate({
Expand Down
Binary file modified src/assets/defaultLoading.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bdda875

Please sign in to comment.