2
0
mirror of synced 2025-01-13 15:46:53 +00:00

Refactor to ESLint

This commit is contained in:
ugiacoman 2017-07-05 09:22:39 -04:00
parent f3858037fc
commit 8eb6156f14
4 changed files with 22 additions and 18 deletions

@ -5,7 +5,7 @@ This example project implements `react-native-firebase` as described in the
### Usage
1) Install `node_modules`: `$ yarn`
1) Install node_modules: `$ yarn` or `$ npm install`
#### iOS
1) Go into ios root directory where the `Podfile` is located

@ -1,6 +1,10 @@
import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
import firebase from './lib/firebase'
import React from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
import firebase from './lib/firebase';
export default class App extends React.Component {
render () {
@ -15,7 +19,7 @@ export default class App extends React.Component {
Running app: {firebase.apps}
</Text>
</View>
)
);
}
}
@ -25,4 +29,4 @@ const styles = StyleSheet.create({
justifyContent: 'center',
alignItems: 'center'
}
})
});

@ -1,10 +1,10 @@
import React, { Component } from 'react'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native'
import App from './app'
} from 'react-native';
import App from './app';
export default class demo extends Component {
render () {
@ -12,7 +12,7 @@ export default class demo extends Component {
<View style={styles.container}>
<App />
</View>
)
);
}
}
@ -20,6 +20,6 @@ const styles = StyleSheet.create({
container: {
flex: 1
}
})
});
AppRegistry.registerComponent('demo', () => demo)
AppRegistry.registerComponent('demo', () => demo);

@ -1,10 +1,10 @@
import React, { Component } from 'react'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native'
import App from './app'
} from 'react-native';
import App from './app';
export default class demo extends Component {
render () {
@ -12,7 +12,7 @@ export default class demo extends Component {
<View style={styles.container}>
<App />
</View>
)
);
}
}
@ -20,6 +20,6 @@ const styles = StyleSheet.create({
container: {
flex: 1
}
})
});
AppRegistry.registerComponent('demo', () => demo)
AppRegistry.registerComponent('demo', () => demo);