Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find variable: regeneratorRuntime (ReactNative)

While trying to run my project on an android emulator, the device throws this error emulator screenshot. I cannot seem to figure out what I am doing wrong. I am still quite new to react

like image 457
Ogbonoko Avatar asked May 16 '18 10:05

Ogbonoko


1 Answers

firstly install babel polyfill

npm install --save @babel/polyfill

then import on top of index.js .

i mean on very top before any import

import "@babel/polyfill";

if got no answer so

module.exports = {
entry: ["@babel/polyfill", "./app/js"],
};

use it this way on your webpack.config.js

like image 61
Sajad Asadi Avatar answered Nov 17 '22 06:11

Sajad Asadi