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 Array | |
def custom | |
index = 0 | |
a = [] | |
while (self[index] != nil) | |
a[index] = yield self[index] | |
index += 1 | |
end | |
a | |
end |
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> | |
); | |
} | |
}; |
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 { | |
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 { | |
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
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
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, StyleSheet, View } from 'react-native'; | |
import Emoji from './emoji'; | |
const styles = StyleSheet.create({ | |
container: { | |
flexDirection: 'row', | |
justifyContent: 'space-around', | |
marginTop: 5, | |
marginBottom: 5, | |
}, |
OlderNewer