导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. tinico
    3. 帖子
    T
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    tinico 发布的帖子

    • RE: taro dev:rn后 打包app怎么打?求指导

      同求

      发布在 React Native
      T
      tinico
    • RE: Taro 编译RN端后该怎么做呢?

      @蜘蛛paipai 在 Taro 编译RN端后该怎么做呢? 中说:

      起来,会自动从 8081 端口获取对应的 js,并渲染页面。

      怎么打包成app呢,先说下Android吧

      发布在 React Native
      T
      tinico
    • RE: H5环境下不能使用async - await???

      @tinico 文档中找到方案了,谢谢

      发布在 H5
      T
      tinico
    • H5环境下不能使用async - await???

      QQ截图20191104162306.png

      发布在 H5
      T
      tinico
    • RE: 编译运行一步一个坑,你们的破文档能改改吗?

      @Taro-小助手-honly 我头一天是用的dev:h5,第二天用成build:h5了,结果就说编译文件过大,暂时还没研究这个问题,我现在都用dev:h5就可以

      WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
      Entrypoints:
        app (306 KiB)
            css/app.css
            js/app.js
      
      发布在 React Native
      T
      tinico
    • <Canvas /> 组件的 RN 版本有什么方案?

      taro本身的canvas组件不支持RN,那么RN有什么替代方案吗

      发布在 React Native
      T
      tinico
    • RE: mobx不是比redux使用简单方便高效吗?为啥资源里面没有mobx的例子啊

      我也比较喜欢mobx,很简单,可是感觉用的人很少是怎么回事

      发布在 Taro
      T
      tinico
    • RE: 编译运行一步一个坑,你们的破文档能改改吗?

      是啊,感觉坑很多,我初始化的一个项目,头一天还能运行,第二天加了几行代码结果说编译文件过大,运行不了了

      发布在 React Native
      T
      tinico
    • 编译文件过大怎么办
      WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
      Entrypoints:
        app (306 KiB)
            css/app.css
            js/app.js
      
      发布在 H5
      T
      tinico
    • RE: TypeError: Cannot read property 'isRoute' of undefined

      @Taro-小助手-honly 可以了,原因是componentDidMount执行了两次,执行第二次时会报错

        componentDidMount() {
          if (process.env.TARO_ENV === 'h5') {
            if (this['__taroref_canvas']) {
              this.canvas = Taro.createCanvasContext('canvas', this);
            }
          }
        }
      

      而且很奇怪的是明明componentDidMount已经取得了canvas了,但是componentDidShow里面使用canvas却未定义

        componentDidShow() {
          console.log(this.canvas) // undefined
        }
      
      发布在 H5
      T
      tinico
    • RE: TypeError: Cannot read property 'isRoute' of undefined

      @Taro-小助手-honly 不得行,我是用H5调试的

      发布在 H5
      T
      tinico
    • RE: TypeError: Cannot read property 'isRoute' of undefined

      @你说什么A我听不见 同问

      发布在 H5
      T
      tinico