Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Created October 7, 2022 13:23
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/21edfb919df3d7e480d2ff919aa555b7 to your computer and use it in GitHub Desktop.
Save callstack-bot/21edfb919df3d7e480d2ff919aa555b7 to your computer and use it in GitHub Desktop.
import React from 'react';
import {add, TestComponent} from '@example-app/shared';
const App = () => {
return (
<div>
<button onPress={() => console.log(add(1,2))}>Run add function</button>
<TestComponent/> // <- React Native component inside React app!
</div>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment