This file contains hidden or 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 default class Practice extends Component { | |
| render() { | |
| return ( | |
| <Card style={styles.card}> | |
| <Card.Body> | |
| <Text style={[TYPO.paperFontHeadline, COLOR.paperCyan500, { marginVertical: 5 }]}> | |
| Hey {this.props.userName}, | |
| </Text> | |
| <View style={{ marginVertical: 5 }}> | |
| <Text style={[TYPO.paperFontBody1]}>Good Evening :)</Text> |
This file contains hidden or 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, StyleSheet, View } from 'react-native'; | |
| import Emoji from './emoji'; | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flexDirection: 'row', | |
| justifyContent: 'space-around', | |
| marginTop: 5, | |
| marginBottom: 5, | |
| }, |
This file contains hidden or 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, PropTypes } from 'react-native'; | |
| import { Actions } from 'react-native-router-flux'; | |
| import { connect } from 'react-redux'; | |
| import AuthComponent from './components/authComponent'; | |
| import { authorizationRequest } from './../../modules/auth/auth'; | |
| const mapStateToProps = (state) => { | |
| return { | |
| user: state.user, |
This file contains hidden or 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, PropTypes } from 'react-native'; | |
| import { Actions } from 'react-native-router-flux'; | |
| import { connect } from 'react-redux'; | |
| import AuthComponent from './components/authComponent'; | |
| import { authorizationRequest } from './../../modules/auth/auth'; | |
| const mapStateToProps = (state) => { | |
| return { | |
| user: state.user, |
This file contains hidden or 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-native'; | |
| import { Provider } from 'react-redux'; | |
| import SplashScreen from '@remobile/react-native-splashscreen'; | |
| import { Scene, Router, Actions, Modal } from 'react-native-router-flux'; | |
| import Auth from './screens/auth/authContainer'; | |
| import LeaderBoard from './screens/leaderboard/leaderboardContainer'; | |
| import store from './store/store'; | |
| const scenes = Actions.create( | |
| <Scene component={Modal} |
This file contains hidden or 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-native'; | |
| import { Provider } from 'react-redux'; | |
| import SplashScreen from '@remobile/react-native-splashscreen'; | |
| import { Scene, Router, Actions, Modal } from 'react-native-router-flux'; | |
| import Auth from './screens/auth/authContainer'; | |
| import LeaderBoard from './screens/leaderboard/leaderboardContainer'; | |
| import store from './store/store'; | |
| const scenes = Actions.create( | |
| <Scene component={Modal} |
This file contains hidden or 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
| class HelloWorld extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = {clicks: 0}; | |
| } | |
| render() { | |
| return ( | |
| <div> | |
| Hello, World! I am {this.props.name} |
This file contains hidden or 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
| class HelloWorld extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = {clicks: 0}; | |
| } | |
| incrementClick() { | |
| this.setState({ | |
| clicks: this.state.clicks + 1 | |
| }); |
This file contains hidden or 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
| class HelloWorld extends React.Component { | |
| render() { | |
| return ( | |
| <div> | |
| Hello, World! I am {this.props.name} | |
| </div> | |
| ); | |
| } | |
| }; |
This file contains hidden or 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
| class HelloWorld extends React.Component { | |
| render() { | |
| return ( | |
| <div> | |
| Hello, World! | |
| </div> | |
| ); | |
| } | |
| }; |