Skip to content

Instantly share code, notes, and snippets.

@AmyrAhmady
Created October 2, 2019 10:42
Show Gist options
  • Save AmyrAhmady/8b7776fbc76f6a7246e22617df12dba0 to your computer and use it in GitHub Desktop.
Save AmyrAhmady/8b7776fbc76f6a7246e22617df12dba0 to your computer and use it in GitHub Desktop.
hey
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