Created
October 2, 2019 10:42
-
-
Save AmyrAhmady/8b7776fbc76f6a7246e22617df12dba0 to your computer and use it in GitHub Desktop.
hey
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 { View, Text } from 'react-native'; | |
type Props = {}; | |
class App extends React.Component<Props> { | |
renderName(name) { | |
var a = 8 + 9 + name; | |
return ( | |
<Text>{a}</Text> | |
) | |
} | |
render() { | |
return ( | |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> | |
{this.renderName('Aria')} | |
{this.renderName('Amir')} | |
</View> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment