Skip to content

Instantly share code, notes, and snippets.

@tanner-west
Created June 30, 2023 02:11
Show Gist options
  • Save tanner-west/4a29faa5188ddfeff2d3adc4e74ac265 to your computer and use it in GitHub Desktop.
Save tanner-west/4a29faa5188ddfeff2d3adc4e74ac265 to your computer and use it in GitHub Desktop.
import React, {FC} from 'react';
import {Button, NativeModules, SafeAreaView} from 'react-native';
const {VisionModule} = NativeModules;
const App: FC = () => {
return (
<SafeAreaView>
<Button
title="Say Hello"
onPress={() => VisionModule?.sayHello('this message is special', 1764)}
/>
</SafeAreaView>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment