react-native-inspect-image
v1.0.5
Published
Image inspection modal component for react native
Maintainers
Readme
React Native Inspect Image
Image inspection modal component for react native.

Prerequisites
If you want to use this library, you also need to install:
react-native-reanimated
react-native-redash
react-native-gesture-handlerInstalling
Using npm:
npm install react-native-inspect-imageUsing yarn:
yarn add react-native-inspect-imageUsage example
import { InspectionModal } from 'react-native-inspect-image';
...
const [inspectionModalOpened, setInspectionModalOpened] = useState(false);
<InspectionModal
visible={inspectionModalOpened}
imgSource={source}
onClose={() => setInspectionModalOpened(false)}
bgColor={'#000'}
/>
...Props
visible: boolean;'visible' prop for native modal
imgSource: ImageSourcePropType;Source of your image
bgColor?: string;Background color of modal
showClose?: boolean;Display close button
closeIconColor?: string;Color of close icon
onClose: () => void;Modal's onRequestClose callback
Built With
Authors
- Me - Initial work - Profile
License
This project is licensed under the MIT License - see the LICENSE.md for details
