导航

    论坛 - React Native中文社区

    • 登录
    • 搜索
    • 版块
    • 最新
    • 热门
    • 搜索
    1. 主页
    2. wangpengzong
    W
    • 继续与 wangpengzong 聊天
    • 开始与 wangpengzong 的新会话
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 主题
    • 帖子
    • 最佳
    • 群组

    wangpengzong

    @wangpengzong

    0
    声望
    28
    帖子
    620
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    wangpengzong 关注

    wangpengzong 发布的帖子

    • 请问下这个错误怎么解决

      pushy bundle --platform android

      Bundling with React Native version: 0.46.4
      Invariant Violation: Can't find "rn-cli.config.js" file in any parent folder of "D:\App"
      at invariant (D:\App\node_modules\fbjs\lib\invariant.js:44:15)
      at Object.findWithPathCustom (D:/App/node_modules/react-native/local-cli/util/Config.js:188:5)
      at Object.findCustom (D:/App/node_modules/react-native/local-cli/util/Config.js:179:19)
      at Object.find (D:/App/node_modules/react-native/local-cli/util/Config.js:170:19)
      at Object.<anonymous> (D:\App\node_modules\react-native-update\local-cli\lib\bundle.js:451:34)
      at Generator.next (<anonymous>)
      at step (D:\App\node_modules\react-native-update\local-cli\lib\bundle.js:310:191)
      at D:\App\node_modules\react-native-update\local-cli\lib\bundle.js:310:361
      at <anonymous>

      发布在 代码热更新
      W
      wangpengzong
    • 关于热更新报错 Cannot find module 'metro-bundler/src/babelRegisterOnly'

      按照错误提示
      0_1506583251415_image.png 将\node_modules\react-native-update\local-cli\lib\bundle.js中439行的'metro-bundler/src/babelRegisterOnly'改为'metro-bundler/build/babelRegisterOnly',原因是因为在metro-bundler引用的路径错了

      发布在 代码热更新
      W
      wangpengzong
    • RE: 程序包com.facebook.react.cxxbridge不存在

      找到原因了,在\node_modules\react-native\ReactAndroid\src\main\java\com\facebook\react\bridge\JSBundleLoader.java中的命名空间是package com.facebook.react.bridge,所以文档里面的com.facebook.react.cxxbridge.JSBundleLoader程序包引用是错的,手工改成com.facebook.react.bridge.JSBundleLoader就好了,好坑呀

      发布在 代码热更新
      W
      wangpengzong
    • RE: 程序包不存在

      程序包com.facebook.react.cxxbridge不存在这个是什么原因程序包com.facebook.react.cxxbridge不存在

      发布在 代码热更新
      W
      wangpengzong
    • 程序包com.facebook.react.cxxbridge不存在

      我使用了
      1、首先尝试删除掉 android/build android/app/build node_modules/react-native-update/android/build 三个文件夹再重试
      2、再尝试更换NDK版本到r10e再重试
      这两种办法都不可以,还是报这个错误
      版本:
      "react-native": "~0.46.4",
      "react-native-update": "^4.0.6",
      ndk r10e (64-bit)

      电脑系统:windows

      0_1506492872882_QQ截图20170927141125.png

      发布在 代码热更新
      W
      wangpengzong
    • Your project contains C++ files but it is not using a supported native build system.

      热更新我使用准备工作文档进行配置,到了ndk的时候卡住了,接着用React Native 热更新的组件react-native-pushy进行NDK和
      CMake的配置,最后报错

      FAILURE: Build failed with an exception.

      • What went wrong:
        Execution failed for task ':react-native-update:compileReleaseNdk'.

      Error: Your project contains C++ files but it is not using a supported native build system.
      Consider using CMake or ndk-build integration with the stable Android Gradle plugin:
      https://developer.android.com/studio/projects/add-native-code.html
      or use the experimental plugin:
      http://tools.android.com/tech-docs/new-build-system/gradle-experimental.

      在网上查的方法都不是用的CMake配置的,请问有什么解决办法

      发布在 代码热更新
      W
      wangpengzong
    • 在MainActivity.java中写了一个方法,怎么在index.android.js中调用?

      我现在在MainActivity.java中写了一个方法,这个方法必须是放在extends ReactActivity(Activity)之中的,现在我怎么才能在前台的js中调用这个方法?

      发布在 讨论区
      W
      wangpengzong
    • 请教一个问题,关于.java文件

      现在要调用微信的功能,找了官方文档(https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=1417751808&token=&lang=zh_CN),0_1504235790466_image.png ,请问一下 我在页面上加一个button,怎么调用 其中的分享功能

      发布在 讨论区
      W
      wangpengzong
    • Linking打开QQ的问题

      在项目里面用了
      Linking.canOpenURL('mqq://'+this.state.ServiceUser.QQ).then(supported => {
      if (supported) {
      Linking.openURL('mqq://'+this.state.ServiceUser.QQ);
      } else { Alert.alert('提醒', '请先安装QQ'); }
      })
      当QQ关闭的时候点击只是QQ的打开界面闪了一下,接着就还是在应用内的页面,当QQ打开的时候点击跳到QQ里面,但是不会直接到聊天的地方,有没有dalao

      发布在 讨论区
      W
      wangpengzong
    • RE: react-native-scrollable-tab-view怎么在tab里面使用webview

      webview外面用content包起来,不用view就好了

      发布在 讨论区
      W
      wangpengzong