<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                > 今天把react native環境搭建完成,然后運行個小demo試試.? > [第一篇環境配置 & Hello World](http://vczero.github.io/react_native/%E7%AC%AC1%E7%AF%87hello%20react-native.html) # 總結 按照上面的學習文章,我基本完成,但是在配置過程中遇到2個問題,需要終結一下。 ## 已安裝node 由于我安裝react-native之前已經安裝過node,我們執行的話會報錯,這個錯誤就是因為react-native使用的是io.js,這個時候我們需要安裝io.js,而你必須刪除node,我按照教程上的解答使用了`brew unlink node`,來刪除對node的引用,然后安裝iojs,但是在使用`sudo brew link iojs --force`會報錯: ~~~ 58deMacBook-Pro:react-native wuxian$ sudo brew link iojs --force Linking /usr/local/Cellar/iojs/2.5.0... Error: Could not symlink bin/node Target /usr/local/bin/node already exists. You may want to remove it: rm '/usr/local/bin/node' To force the link and overwrite all conflicting files: brew link --overwrite iojs To list all files that would be deleted: brew link --overwrite --dry-run iojs ~~~ ## 解決方法 這個時候我們要使用`sudo brew link --overwrite iojs --force`來用iojs覆蓋node.js。 ## 空指針的錯誤 我初始化一個Helloworld項目后,會報錯,報一個空指針的錯誤 ~~~ NSURLSessionDownloadTask *task = [_URLSession downloadTaskWithURL:url completionHandler:nil]; ~~~ ![](https://box.kancloud.cn/2016-01-07_568e13ecd9ce3.jpg) 我改成了一個空的實現: ~~~ NSURLSessionDownloadTask *task = [_URLSession downloadTaskWithURL:url completionHandler:^(NSURL *location, NSURLResponse *response, NSError *error){ }]; ~~~ 程序就運行成功了。 ![](https://box.kancloud.cn/2016-01-07_568e13ed01019.jpg) 后來我在github上找到問題的另外一種[解決方案](https://github.com/facebook/react-native/issues/2117) 就是刪掉方法的?`completionHandler:nil`后變為如下形式就正確了: ~~~ NSURLSessionDownloadTask *task = [_URLSession downloadTaskWithURL:url]; ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看