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'; | |
class App extends Component { | |
render() { | |
return ( | |
<Home /> | |
); | |
} | |
} |
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'; | |
class Home extends PureComponent { | |
render() { | |
const { input, button } = styles; |
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'; | |
class Home extends PureComponent { | |
render() { | |
return ( | |
<View> | |
<Input | |
label='Owner' |
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 ReactDOM from 'react-dom'; | |
// Generate required css | |
import iconFont from 'react-native-vector-icons/Fonts/FontAwesome.ttf'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; |
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
{ | |
test: /\.ttf$/, | |
loader: 'url-loader', | |
include: path.join(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
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
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
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
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 |
OlderNewer