react-native-fix-magnification
v1.0.2
Published
A library to help you fix image magnification filter
Downloads
6
Maintainers
Readme
A library to help you fix images magnification.(show image pixelated)
Easy example:
Usage
You don't need to install this package in order to fix images. Add a postinstall script in your package.json and every time you will install dependencies the script will run fixing the problem.
- add postinstall script (example below);
- run
yarn install
ornpm i
if you use npm; - rebuild project in Xcode;
Example package.json with postinstall script
{
"name": "ReactNativeApp",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"postinstall": "npx react-native-fix-magnification"
}
}
Notes
- Also if you have multiple postinstall commands you can combine them as following:
...
"postinstall": "npx react-native-fix-magnification && npx react-native-fix-image"
...
}