Skip to content

Commit a04eea9

Browse files
committed
Merge pull request #87 from infinitered/0.25_syntax_change
[ALL] 0.25 syntax change
2 parents d540f06 + 9096de6 commit a04eea9

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

ignite-base/App/Components/ProgressiveImage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
thumbnail='http://stockphotos.com/thumbnail1.jpg'
55
*/
66

7-
import React, { Image, Animated, View } from 'react-native'
7+
import React from 'react'
8+
import { Image, Animated, View } from 'react-native'
89
// import { Images } from '../Themes'
910

1011
export default class ProgressiveImage extends React.Component {

ignite-base/App/Containers/AllComponentsScreen.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// An All Components Screen is a great way to dev and quick-test components
2-
import React, { View, ScrollView, Text, TouchableOpacity, PropTypes } from 'react-native'
2+
import React from 'react'
3+
import { View, ScrollView, Text, TouchableOpacity, PropTypes } from 'react-native'
34
import { connect } from 'react-redux'
45
import styles from './Styles/AllComponentsScreenStyle'
56
import ProgressiveImage from '../Components/ProgressiveImage'

ignite-base/App/Containers/LoginScreen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {
2-
Component,
1+
import React from 'react'
2+
import {
33
PropTypes,
44
View,
55
Text,
@@ -18,7 +18,7 @@ import {Images, Metrics} from '../Themes'
1818
// I18n
1919
import I18n from '../I18n/I18n.js'
2020

21-
class LoginScreen extends Component {
21+
class LoginScreen extends React.Component {
2222

2323
constructor (props) {
2424
super(props)

ignite-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ignite",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Create new react native files that fit the IR workflow",
55
"files": [
66
"index.js"
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"colors": "^1.1.2",
3232
"commander": "^2.9.0",
33-
"generator-react-native-ignite": "^0.1.0",
33+
"generator-react-native-ignite": "^0.2.0",
3434
"ramda": "^0.20.0",
3535
"shelljs": "^0.6.0",
3636
"yeoman-generator": "^0.21.1",

ignite-generator/component/templates/component.js.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

3-
import React, { View, Text } from 'react-native'
3+
import React from 'react'
4+
import { View, Text } from 'react-native'
45
import styles from './Styles/<%= name %>Style'
56

67
export default class <%= name %> extends React.Component {

ignite-generator/container/templates/container.js.template

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// An All Components Screen is a great way to dev and quick-test components
2-
import React, { View, ScrollView, Text, PropTypes } from 'react-native'
1+
import React from 'react'
2+
import { ScrollView, Text, PropTypes } from 'react-native'
33
import { connect } from 'react-redux'
44
import Actions from '../Actions/Creators'
55
import Routes from '../Navigation/Routes'
@@ -10,10 +10,10 @@ import styles from './Styles/<%= name %>Style'
1010

1111
export default class <%= name %> extends React.Component {
1212

13-
constructor (props) {
14-
super(props)
15-
this.state = {}
16-
}
13+
// constructor (props) {
14+
// super(props)
15+
// this.state = {}
16+
// }
1717

1818
static propTypes = {
1919
navigator: PropTypes.object.isRequired

ignite-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-react-native-ignite",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "Create new react native files that fit the IR workflow",
55
"files": [
66
"app",

0 commit comments

Comments
 (0)