V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
CodingPuppy
V2EX  ›  React

把 react-native 工程从 0.47 升级到了 0.56,分享下简单的记录

  •  1
     
  •   CodingPuppy · Jul 11, 2018 · 3309 views
    This topic created in 2860 days ago, the information mentioned may be changed or developed.

    rn 开发效率实在是高,但是升级起来问题多的让人想哭,太多坑了,我填了三个晚上,差点放弃。 最难受的一个问题是 RN 使用 Gradle3.0 以上的版本有资源打包的问题,找了很长时间怎么优雅的解决,用到了 react-native-camrea 库又必需要升级 gradle 版本,最后还是得通过 hack rn 库解决。

    升级记录,希望对想升级 0.56 的同学有帮助

    Supplement 1  ·  Jul 11, 2018

    今天用win10的同事说0.56编译有问题,又发现这么个坑

    Unexpected identifier

    官方带着这么个已知问题就发新版本了。。真是。。。

    I wouldn't be surprised to see more people try out Flutter

    4 replies    2018-07-11 10:50:11 +08:00
    Lxxyx
        1
    Lxxyx  
       Jul 11, 2018 via Android
    升级头疼+1,RN 的坑也越来越大了
    ByteRan
        2
    ByteRan  
       Jul 11, 2018   ❤️ 1
    v2xeuser
        3
    v2xeuser  
       Jul 11, 2018
    别再在 RN 上浪费自己的生命啦
    CodingPuppy
        4
    CodingPuppy  
    OP
       Jul 11, 2018
    @tanranran 哈哈哈,很形象
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:24 · PVG 08:24 · LAX 17:24 · JFK 20:24
    ♥ Do have faith in what you're doing.