RN升级适配— reviewed by zxl
Showing
2 changed files
with
3 additions
and
3 deletions
1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
2 | -import { Dimensions, Image, ScrollView, StyleSheet, Text, TouchableOpacity, View,ListView } from 'react-native'; | 2 | +import { Dimensions, Image, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; |
3 | +import ListView from 'deprecated-react-native-listview' | ||
3 | import { connect } from 'react-redux'; | 4 | import { connect } from 'react-redux'; |
4 | import Immutable, { List } from 'immutable'; | 5 | import Immutable, { List } from 'immutable'; |
5 | 6 |
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | -import ReactNative from 'react-native'; | 3 | +import ReactNative, {Platform} from 'react-native'; |
4 | import SeckillService from '../../services/PanicbuyingService'; | 4 | import SeckillService from '../../services/PanicbuyingService'; |
5 | import Immutable, {Map} from 'immutable'; | 5 | import Immutable, {Map} from 'immutable'; |
6 | import PanicbuyingService from '../../services/PanicbuyingService'; | 6 | import PanicbuyingService from '../../services/PanicbuyingService'; |
7 | 7 | ||
8 | -const Platform = require('Platform'); | ||
9 | const moment = require('moment'); | 8 | const moment = require('moment'); |
10 | 9 | ||
11 | const { | 10 | const { |
-
Please register or login to post a comment