React-native 0.24+ compatibility

This commit is contained in:
Jérémy Magrin
2016-05-25 10:22:04 +02:00
parent a83bf29577
commit 7c67ed2851
5 changed files with 13 additions and 14 deletions

View File

@@ -5,14 +5,8 @@ import rows from './data';
// example styles
import styles from './styles';
import React, {
Component,
AppRegistry,
StyleSheet,
ListView,
Text,
View,
} from 'react-native';
import React, {Component} from 'react';
import {AppRegistry, StyleSheet, ListView, Text, View} from 'react-native';
// example swipout app
class SwipeoutExample extends Component {

View File

@@ -1,6 +1,5 @@
import React, {
Image,
} from 'react-native';
import React from 'react';
import {Image} from 'react-native';
var btnsDefault = [ { text: 'Button' } ];

View File

@@ -1,4 +1,4 @@
var React = require('react-native')
var React = require('react')
var {StyleSheet} = React
var styles = StyleSheet.create({