Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Created October 7, 2022 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callstack-bot/5bc1162031483af83707c89aa8854e74 to your computer and use it in GitHub Desktop.
Save callstack-bot/5bc1162031483af83707c89aa8854e74 to your computer and use it in GitHub Desktop.
import React from 'react';
import {Text, TouchableOpacity, View} from 'react-native';
import {add} from '@example-app/shared';
const App = () => {
return (
<View>
<TouchableOpacity
accessibilityRole="button"
onPress={() => {
console.log(add(1, 2));
}}>
<Text>Run Add function</Text>
</TouchableOpacity>
</View>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment