React native 反应天然酶安装天然元素“;在该浏览器中无法识别;

React native 反应天然酶安装天然元素“;在该浏览器中无法识别;,react-native,enzyme,React Native,Enzyme,将本地应用程序与Expo进行交互。 笑话与酶 要在组件上运行EnzymeMount,以便测试状态更新 我有一个简单的测试 describe("State checking", () => { test("Make sure that State gets added from Route params", () => { const component = mount(<Categories/>);

将本地应用程序与Expo进行交互。 笑话与酶

要在组件上运行Enzyme
Mount
,以便测试状态更新

我有一个简单的测试

describe("State checking", () => {
    test("Make sure that State gets added from Route params", () => {
        const component = mount(<Categories/>);
        const instance = component.instance();
        console.log(instance);
    })
})
description(“状态检查”),()=>{
测试(“确保从路由参数添加状态”,()=>{
const component=mount();
const instance=component.instance();
console.log(实例);
})
})
运行此测试时,我从测试中得到以下错误:

Warning: <View /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
Warning: The tag <View> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
警告:正在使用不正确的外壳。对于React组件使用PascalCase,对于HTML元素使用小写。
警告:此浏览器无法识别该标记。如果要呈现React组件,请以大写字母开头其名称。
这是怎么回事?它不知道我正在使用React Native吗

我已经研究过这个问题,但没有得到任何有用的结果

谢谢你抽出时间