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); + } + };

      + }

    }

  • 相关阅读:
    学习资料
    InstallShield常用工具
    InstallShield中调用API
    系统目录
    abort和exit
    Uninstall Registry Key
    GDI+资料
    VBScript是什么?有什么优缺点?
    DrawImage调查
    KEIL MDK环境下uCOSII在LPC17xx上的移植实例 Chung
  • 原文地址:https://www.cnblogs.com/boonook/p/10381605.html
Copyright © 2011-2022 走看看