It seems you are trying to access the "ReactNative.createClass" from the "reactive" package,

Anyone who met this error can help me. I do not understand why this error occurred in my programenter image description here

+4
source share
2 answers

The error message is straight forward. If you cannot change it manually, you can use CodeMod ( https://github.com/sibelius/codemod-RN24-to-RN25 )

If all your data is correct, check third-party modules. If you are in the old version, update third-party modules.

+3
source

The error is very descriptive - you are importing Reactfrom a package react-nativethat has been incorrect since version 0.25.

:

import React, { Component, View, Text } from 'react-native' 

:

import React, { Component } from 'react'
import { View, Text } from 'react-native'

, , , .

+1

Source: https://habr.com/ru/post/1650004/


All Articles