Refactor to ESLint
This commit is contained in:
parent
f3858037fc
commit
8eb6156f14
@ -5,7 +5,7 @@ This example project implements `react-native-firebase` as described in the
|
|||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
1) Install `node_modules`: `$ yarn`
|
1) Install node_modules: `$ yarn` or `$ npm install`
|
||||||
|
|
||||||
#### iOS
|
#### iOS
|
||||||
1) Go into ios root directory where the `Podfile` is located
|
1) Go into ios root directory where the `Podfile` is located
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import React from 'react'
|
import React from 'react';
|
||||||
import { View, Text, StyleSheet } from 'react-native'
|
import {
|
||||||
import firebase from './lib/firebase'
|
View,
|
||||||
|
Text,
|
||||||
|
StyleSheet
|
||||||
|
} from 'react-native';
|
||||||
|
import firebase from './lib/firebase';
|
||||||
|
|
||||||
export default class App extends React.Component {
|
export default class App extends React.Component {
|
||||||
render () {
|
render () {
|
||||||
@ -15,7 +19,7 @@ export default class App extends React.Component {
|
|||||||
Running app: {firebase.apps}
|
Running app: {firebase.apps}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,4 +29,4 @@ const styles = StyleSheet.create({
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center'
|
alignItems: 'center'
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react';
|
||||||
import {
|
import {
|
||||||
AppRegistry,
|
AppRegistry,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
View
|
View
|
||||||
} from 'react-native'
|
} from 'react-native';
|
||||||
import App from './app'
|
import App from './app';
|
||||||
|
|
||||||
export default class demo extends Component {
|
export default class demo extends Component {
|
||||||
render () {
|
render () {
|
||||||
@ -12,7 +12,7 @@ export default class demo extends Component {
|
|||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<App />
|
<App />
|
||||||
</View>
|
</View>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,6 +20,6 @@ const styles = StyleSheet.create({
|
|||||||
container: {
|
container: {
|
||||||
flex: 1
|
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 {
|
import {
|
||||||
AppRegistry,
|
AppRegistry,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
View
|
View
|
||||||
} from 'react-native'
|
} from 'react-native';
|
||||||
import App from './app'
|
import App from './app';
|
||||||
|
|
||||||
export default class demo extends Component {
|
export default class demo extends Component {
|
||||||
render () {
|
render () {
|
||||||
@ -12,7 +12,7 @@ export default class demo extends Component {
|
|||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<App />
|
<App />
|
||||||
</View>
|
</View>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,6 +20,6 @@ const styles = StyleSheet.create({
|
|||||||
container: {
|
container: {
|
||||||
flex: 1
|
flex: 1
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
AppRegistry.registerComponent('demo', () => demo)
|
AppRegistry.registerComponent('demo', () => demo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user