-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
28 lines (26 loc) · 761 Bytes
/
App.js
File metadata and controls
28 lines (26 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from "react";
import StorybookUIRoot from "./.ondevice/Storybook";
import { Platform, StatusBar, View } from "react-native";
import { useFonts } from "expo-font";
import { Provider } from "./src";
import { FormComponent } from "./stories/Form.stories";
export default () => {
const [fontsLoaded] = useFonts({
Inter: require("./src/assets/fonts/Inter-Regular.ttf"),
"Inter-Bold": require("./src/assets/fonts/Inter-Bold.ttf"),
"Inter-SemiBold": require("./src/assets/fonts/Inter-SemiBold.ttf"),
});
if (!fontsLoaded) {
return null;
}
return (
<View
style={{
flex: 1,
marginTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
}}
>
<StorybookUIRoot />
</View>
);
};