Reactjs 为什么要安装一个新的库并使用它,它显示了一个错误?
我安装了galio框架。Reactjs 为什么要安装一个新的库并使用它,它显示了一个错误?,reactjs,react-native,Reactjs,React Native,我安装了galio框架。npm安装galio框架然后我使用了它 导入:import{Card}来自“galio框架”然后 <Card flex borderless style={styles.card} title="Christopher Moon" caption="139 minutes ago" location="Los Angeles, CA" avatar="http://i.
npm安装galio框架
然后我使用了它
导入:import{Card}来自“galio框架”代码>然后
<Card
flex
borderless
style={styles.card}
title="Christopher Moon"
caption="139 minutes ago"
location="Los Angeles, CA"
avatar="http://i.pravatar.cc/100?id=skater"
imageStyle={styles.cardImageRadius}
imageBlockStyle={{ padding: theme.SIZES.BASE / 2 }}
image="https://images.unsplash.com/photo-1497802176320-541c8e8de98d?&w=1600&h=900&fit=crop&crop=entropy&q=300"
/>
嗨,请尝试以这种方式导入,
从“galio框架”导入卡代码>您是否链接了链接
ed?你是如何创建初始项目的?不,我没有创建任何链接。我安装了npx react native init AwesomeProject
,因此首先尝试在project dir中运行npx react native link
WARN Require cycle: node_modules\galio-framework\src\index.js -> node_modules\galio-framework\src\Toast.js -> node_modules\galio-framework\src\index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.