Skip to content

Instantly share code, notes, and snippets.

@jai-adapptor
Last active July 25, 2022 13:51
Show Gist options
  • Save jai-adapptor/d741248c6987093d37b72b87799c5463 to your computer and use it in GitHub Desktop.
Save jai-adapptor/d741248c6987093d37b72b87799c5463 to your computer and use it in GitHub Desktop.
Add new components to index.tsx
import Sheet from './components/Sheet';
import MainContent from './components/MainContent';
import ExampleComponent from './components/ExampleComponent';
function App() {
return (
<View style={{ flex: 1 }}>
<MainContent />
<Sheet>
<ExampleComponent style={{ height: 60, marginBottom: 10 }} />
<View style={{ flexDirection: 'row', marginBottom: 10 }}>
<ExampleComponent style={{ flex: 1, height: 120, marginRight: 10 }} />
<ExampleComponent style={{ flex: 1, height: 120 }} />
</View>
</Sheet>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment