From f666b12141025b6fff759569d9b7a2ff7cb3abfb Mon Sep 17 00:00:00 2001 From: zhuwx Date: Fri, 7 Apr 2017 12:05:13 +1000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E5=8F=AF=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=9C=A8=20iOS=2010.2=20=E7=9A=84=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 原来的代码无法正常运行, 底部4格布局显示不出来 2. 更新的代码可以正常运行在 iOS 10.2 的模拟器中 3. ‘http’ uri 地址的图片无法正常加载,需要修改 `info.plist` 文件 --- .../index.ios.js" | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git "a/code/\347\254\2544\347\257\207\345\270\203\345\261\200\345\256\236\346\210\230\357\274\210\344\270\200\357\274\211\344\273\243\347\240\201/index.ios.js" "b/code/\347\254\2544\347\257\207\345\270\203\345\261\200\345\256\236\346\210\230\357\274\210\344\270\200\357\274\211\344\273\243\347\240\201/index.ios.js" index 964c8b7..1c53952 100644 --- "a/code/\347\254\2544\347\257\207\345\270\203\345\261\200\345\256\236\346\210\230\357\274\210\344\270\200\357\274\211\344\273\243\347\240\201/index.ios.js" +++ "b/code/\347\254\2544\347\257\207\345\270\203\345\261\200\345\256\236\346\210\230\357\274\210\344\270\200\357\274\211\344\273\243\347\240\201/index.ios.js" @@ -2,22 +2,21 @@ * Sample React Native App * https://github.com/facebook/react-native */ -'use strict'; -var React = require('react-native'); -var { - AppRegistry, - StyleSheet, - Text, - View, - Image, -} = React; +import React, { Component } from 'react'; +import { + AppRegistry, + StyleSheet, + Text, + View, + Image, +} from 'react-native'; var HelloWorld = React.createClass({ render: function() { return ( - + 我们约吧 @@ -60,8 +59,8 @@ var HelloWorld = React.createClass({ - - + + 撸串节狂欢 烧烤6.6元起 @@ -70,7 +69,7 @@ var HelloWorld = React.createClass({ - + 毕业旅行 选好酒店才安心 @@ -81,7 +80,7 @@ var HelloWorld = React.createClass({ - + 0元餐来袭 免费吃喝玩乐购 @@ -90,7 +89,7 @@ var HelloWorld = React.createClass({ - + 热门团购 大家都在买什么