更新时结束错误'结束'在阴影节点类型:BVLinearGradient

时间:2017-12-15 07:46:21

标签: reactjs react-native

我在更新'结束时出现错误'在阴影节点类型: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()
    );
  }
}

请帮我解决此问题

1 个答案:

答案 0 :(得分:1)

这是react-native-linear-gradient的错误。该问题处于开放状态。目前,有两种解决方案 -

  1. 以startPoint替换start,以<LinearGradient /&gt;
  2. 的endPoint props结束
  3. 将本机反应版本降级为0.50.3
  4. 此问题的详细信息如下:

    https://github.com/react-native-community/react-native-linear-gradient/issues/246