Further fixes to examples following react@15 update

This commit is contained in:
Nicolas Gallagher
2016-06-14 15:56:10 -07:00
parent f2ea7c089c
commit 60ad0e9ec5
4 changed files with 9 additions and 7 deletions

View File

@@ -8,8 +8,8 @@ export default class App extends React.Component {
style: View.propTypes.style
}
constructor(...args) {
super(...args)
constructor(props) {
super(props)
this.state = {
scrollEnabled: true
}

View File

@@ -1,4 +1,5 @@
import React, { Component, PropTypes, StyleSheet, View } from 'react-native'
import React, { Component, PropTypes } from 'react'
import { StyleSheet, View } from 'react-native'
export default class GridView extends Component {
static propTypes = {
@@ -12,8 +13,8 @@ export default class GridView extends Component {
}
static defaultProps = {
alley: '0',
gutter: '0'
alley: '0px',
gutter: '0px'
}
render() {

View File

@@ -1,4 +1,5 @@
import React, { StyleSheet, Text } from 'react-native'
import React from 'react'
import { StyleSheet, Text } from 'react-native'
const Heading = ({ children, size = 'normal' }) => (
<Text

View File

@@ -2,6 +2,6 @@ import { AppRegistry } from 'react-native'
import Game2048 from './2048/Game2048'
import TicTacToeApp from './TicTacToe/TicTacToe'
AppRegistry.runApplication('Game2048', {
AppRegistry.runApplication('TicTacToeApp', {
rootTag: document.getElementById('react-root')
})