undefined is not an object evaluating 'react1["default"].createElement [SOLVED] -
 undefined is not an object evaluating 'react1["default"].createElement [SOLVED]
by on on andorid

undefined is not an object evaluating 'react1["default"].createElement [SOLVED]

Errors sometimes may seem confusing, I have not encountered this kind of error till a day came while I was working with my react native app.

undefined is not an object (evaluating 'react_1["default"].createElement'

Here is the solution, Your just forgot to do this



Import React from 'react'


OR


import * as React from 'react'


and that solves it.