react-native-safe-image
Really light React-Native package to handle fallback when image is on error
- fallback to other image
- fallback to a component
How to use it ?
yarn add react-native-safe-image
import SafeImage from 'react-native-safe-image' // ... { return <SafeImage = = = ="contain" /> }// ... or ...const noImg = <View><Text>No Img</Text></View> { return <SafeImage = = = ="contain" /> }
Todos
- add
fallbackComponent
prop
Hire an expert!
Looking for a ReactNative freelance expert with more than 12 years experience? Contact me from my website!