从 'react' 导入 React ,{Component}

Import React ,{Component} from 'react'

我遇到导入 React 的问题。这是我的错误

可能是正常问题,我也在Google上找到了一些解决问题的方法。我无法解决问题 now.Because 我想我已经更改了 it.This 是我的代码

感谢您的帮助

尝试关注

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

尝试使用

import * as React from 'react';


class MyProject extends React.Component ...