From 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Tue, 20 Jul 2021 21:24:52 +0300 Subject: WIP --- storybook/storybook.tsx | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 storybook/storybook.tsx (limited to 'storybook/storybook.tsx') diff --git a/storybook/storybook.tsx b/storybook/storybook.tsx deleted file mode 100644 index c48e3ef..0000000 --- a/storybook/storybook.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import React, { useEffect } from 'react' -import { getStorybookUI, configure } from '@storybook/react-native' -import { initFonts } from '../app/theme/fonts' - -declare let module - -configure(() => { - require('./storybook-registry') -}, module) - -const StorybookUI = getStorybookUI({ - port: 9001, - host: 'localhost', - onDeviceUI: true, - asyncStorage: - require('@react-native-async-storage/async-storage').default || null, -}) - -export function StorybookUIRoot() { - useEffect(() => { - ;(async () => { - await initFonts() // expo only - if (typeof __TEST__ === 'undefined' || !__TEST__) { - const Reactotron = require('../app/services/reactotron') - const reactotron = new Reactotron.Reactotron() - reactotron.setup() - } - })() - }, []) - - return -} -- cgit v1.2.3