Refactor to ESLint
This commit is contained in:
parent
f3858037fc
commit
8eb6156f14
example/demo
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user