我在更新'结束时出现错误'在阴影节点类型:BVLinearGradient"当我运行我的react本机应用程序时出现错误并且错误似乎来自我的MainApplication.java文件,这里是我的代码:
package com.*;
import com.BV.LinearGradient.LinearGradientPackage;
import com.facebook.react.ReactPackage;
import com.horcrux.svg.SvgPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.reactnativenavigation.NavigationApplication;
import com.wheelpicker.WheelPickerPackage;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends NavigationApplication {
@Override
public boolean isDebug() {
// Make sure you are using BuildConfig from your own application
return BuildConfig.DEBUG;
}
@Override
public List<ReactPackage> createAdditionalReactPackages() {
// Add the packages you require here.
// No need to add RnnPackage and MainReactPackage
return Arrays.<ReactPackage>asList(
new WheelPickerPackage(),
new VectorIconsPackage(),
new SvgPackage(),
new LinearGradientPackage()
);
}
}
请帮我解决此问题
答案 0 :(得分:1)
这是react-native-linear-gradient的错误。该问题处于开放状态。目前,有两种解决方案 -
<LinearGradient
/&gt; 此问题的详细信息如下:
https://github.com/react-native-community/react-native-linear-gradient/issues/246