标签: typescript react-native storybook
我尝试使用Storybook设置React Native,并且在导入.tsx组件时出现错误: React is not defined
.tsx
React is not defined
答案 0 :(得分:0)
对我来说,固定的问题是在我的.tsx组件中进行了更改: import React from "react";
import React from "react";
至:
import * as React from "react";