我试图实现react-native-linear-gradient但是一旦我将库导入到react-native组件中,我就会收到以下错误:
{
"gifts" : {
"\"93c08520-14ea-11e7-855f-e957e315db04\"" : {
"Description" : "SomeDescription",
"Name" : "Some GIFT",
"Tags" : [ "wedding", "graduation", "Easter" ],
"id" : "93c08520-14ea-11e7-855f-e957e315db04"
},
"\"93d48250-14ea-11e7-855f-e957e315db04\"" : {
"Description" : "SomeDescription",
"Name" : "Some GIFT",
"Tags" : [ "birthday", "graduation", "anniversary" ],
"id" : "93d48250-14ea-11e7-855f-e957e315db04"
},
"\"93e487e0-14ea-11e7-855f-e957e315db04\"" : {
"Description" : "SomeDescription",
"Name" : "Some GIFT",
"Tags" : [ "graduation", "wedding", "birthday" ],
"id" : "93e487e0-14ea-11e7-855f-e957e315db04"
}
}
我可以在XCode中成功编译项目,并且渐变显示在物理iPhone上,但它不在模拟器中。
之前有没有人处理过这个问题?
同样,问题是本机反应(iOS模拟器)无法找到库,但是XL中存在BVLinearGradient库,项目编译成功。
由于
答案 0 :(得分:0)