This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { ActivityIndicator, Dimensions, FlatList, Platform, View } from 'react-native'; | |
import { Avatar, ListItem } from 'react-native-elements'; | |
import { compose } from 'redux'; | |
import fetch from 'fetch-hoc'; | |
import styles from '../Shared.style'; | |
import withHeader from '../../HOCs/withHeader'; | |
const containerStyle = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { compose } from 'redux'; | |
import fetch from 'fetch-hoc'; | |
... | |
export default compose( | |
withHeader({ title: 'Commits' }), | |
fetch('https://api.github.com/repos/react-native-training/react-native-elements/commits') | |
)(CommitList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import withHeader from '../../HOCs/withHeader'; | |
... | |
export default withHeader({ title: 'Commits' })(CommitList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PureComponent } from 'react'; | |
import { View } from 'react-native'; | |
import { Input, Button } from 'react-native-elements'; | |
import styles from './Shared.style'; | |
import { withRouter } from '../Utils/Routing'; | |
class Home extends PureComponent { | |
onPressButton = () => { | |
// Go to Commit screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Home from './Components/Home'; | |
import CommitList from './Components/Commit/CommitList'; | |
import { Route, Router, Switch } from './Utils/Routing'; | |
class App extends Component { | |
render() { | |
return ( | |
<Router> | |
<Switch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { | |
BrowserRouter as Router, | |
Link, | |
Route, | |
Switch, | |
withRouter | |
} from 'react-router-dom'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { | |
NativeRouter as Router, // Rename | |
Link, | |
Route, | |
Switch, | |
withRouter | |
} from 'react-router-native'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Text, View } from 'react-native'; | |
import styles from '../Shared.style'; | |
const CommitList = () => ( | |
<View style={styles.container}> | |
<Text>Placeholder for second screen</Text> | |
</View> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: [ | |
paths.appSrc, | |
`${paths.appNodeModules}/react-native-elements`, | |
`${paths.appNodeModules}/react-native-vector-icons` | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Button | |
onPress={this.onClick} | |
buttonStyle={styles.button} | |
underlayColor={'#0A84D0'} | |
title='Rotate Logo' | |
titleStyle={styles.buttonText} | |
/> |
NewerOlder