我正在使用react native elements库构建UI.我正在try 创建一个带有图标的按钮.我最初只是从网站上复制了这段代码,没有做任何更改,以查看按钮是否正常工作.
import { Button } from "@rneui/themed";
<Button
title="Basic Button"
buttonStyle={{
backgroundColor: 'rgba(78, 116, 289, 1)',
borderRadius: 3,
}}
containerStyle={{
width: 200,
marginHorizontal: 50,
marginVertical: 10,
}}
/>
我在应用程序中不断收到此错误
TypeError: undefined is not an object (evaluating 'theme.spacing[radius]')
来自内部按钮.ui附带的js.图书馆我不确定这可能是什么原因造成的.我成功地使用了库中的输入组件,没有任何问题,因此我认为我已经正确安装了它.那么,是什么导致了此按钮问题?