react-native-photo-upload
react-native-photo-upload copied to clipboard
Not Working When debugger is off
Hello,
It has some issue when debugger is off, i cannot select picture.
also when i release the app , it dosent work
I had same issue, I solved it this way after too much researches. Inject to your project: https://www.npmjs.com/package/base-64
Index.js
/**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { decode, encode } from 'base-64';
if (!global.btoa) {
global.btoa = encode;
}
if (!global.atob) {
global.atob = decode;
}
AppRegistry.registerComponent(appName, () => App);