react-native-photo-upload icon indicating copy to clipboard operation
react-native-photo-upload copied to clipboard

Not Working When debugger is off

Open affanhashone opened this issue 5 years ago • 1 comments

Hello,

It has some issue when debugger is off, i cannot select picture.

also when i release the app , it dosent work

affanhashone avatar Jun 29 '19 14:06 affanhashone

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);

ozican avatar Aug 17 '19 14:08 ozican