Skip to content

Instantly share code, notes, and snippets.

@mp5maker
Created December 21, 2020 03:19
Show Gist options
  • Save mp5maker/e38011e48e832faedc3f7fe19b88a662 to your computer and use it in GitHub Desktop.
Save mp5maker/e38011e48e832faedc3f7fe19b88a662 to your computer and use it in GitHub Desktop.
expo-app/App.tsx
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { adder } from '@web/utilities/adder'
export default function App() {
console.log(adder(1, 2)) // 3
return (
<View style={styles.container}>
<Text>Open up App.tsx to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment