-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
23 lines (23 loc) · 848 Bytes
/
App.js
File metadata and controls
23 lines (23 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
exports.default = App;
var react_2 = require('@emotion/react');
var native_1 = require('@react-navigation/native');
var RootNavigator_1 = require('@src/navigation/RootNavigator');
var theme_1 = require('@styles/theme');
var react_native_toast_message_1 = require('react-native-toast-message');
var SHOW_SB = process.env.EXPO_PUBLIC_STORYBOOK === '1';
var StorybookUIRoot = SHOW_SB ? require('./.storybook').default : null;
function App() {
if (SHOW_SB && StorybookUIRoot) {
return <StorybookUIRoot />;
}
return (
<react_2.ThemeProvider theme={theme_1.default}>
<native_1.NavigationContainer>
<RootNavigator_1.default />
<react_native_toast_message_1.default />
</native_1.NavigationContainer>
</react_2.ThemeProvider>
);
}