Closed reberthkss closed 3 years ago
Hey @reberthkss ,
you need to use LinearGradient:
e.g:
import LinearGradient from 'react-native-linear-gradient';
<ShimmerPlaceHolder shimmerStyle={[{ borderRadius: 20,marginHorizontal: 16, marginBottom: 20, }]} height={104} width={104} LinearGradient={LinearGradient}>
Are u using expo? If not, please follow those code
import LinearGradient from 'react-native-linear-gradient';
import { createShimmerPlaceholder } from 'react-native-shimmer-placeholder'
const ShimmerPlaceHolder = createShimmerPlaceholder(LinearGradient)
<ShimmerPlaceHolder />
or
import LinearGradient from 'react-native-linear-gradient';
import ShimmerPlaceHolder from 'react-native-shimmer-placeholder'
...
<ShimmerPlaceHolder
LinearGradient={LinearGradient}
/>
This bug occurs with expo, and isn't resolved.
import { createShimmerPlaceholder } from 'react-native-shimmer-placeholder'
import LinearGradient from 'expo-linear-gradient';
const ShimmerPlaceholder = createShimmerPlaceholder(LinearGradient)
Gathering the error below on trying the getting start example
system: