zoukankan      html  css  js  c++  java
  • react-navigation在抽屉外面点击时抽屉不靠近

    https://reactnavigation.org/docs/en/getting-started.html#installation

    https://github.com/react-navigation/react-navigation/issues/5540;

    yarn add react-native-gesture-handler

    react-native link react-native-gesture-handler

    MainActivity.java

    package com.reactnavigation.example;

    import com.facebook.react.ReactActivity;

    + import com.facebook.react.ReactActivityDelegate;

    + import com.facebook.react.ReactRootView;

    + import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;

    public class MainActivity extends ReactActivity {

    @Override

    protected String getMainComponentName() {

      return "Example";

    }

    +@Override

    + protected ReactActivityDelegate createReactActivityDelegate() {

      + return new ReactActivityDelegate(this, getMainComponentName()) {

      + @Override

      + protected ReactRootView createRootView() {

        + return new RNGestureHandlerEnabledRootView(MainActivity.this); + } + };

      + }

    }

  • 相关阅读:
    webkit之滚动条美化
    意想不到的javascript
    html5 的存储
    javascript 中的number
    javascript 模板
    关于ajax的跨域
    一个菜鸟眼中的前端
    【转】python
    [转]修改python默认的编码方式
    搞科研
  • 原文地址:https://www.cnblogs.com/boonook/p/10381605.html
Copyright © 2011-2022 走看看