Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working When debugger is off #69

Open
affanhashone opened this issue Jun 29, 2019 · 1 comment
Open

Not Working When debugger is off #69

affanhashone opened this issue Jun 29, 2019 · 1 comment

Comments

@affanhashone
Copy link

Hello,

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

also when i release the app , it dosent work

@ozican
Copy link

ozican commented Aug 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants