-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
37 lines (34 loc) · 1.03 KB
/
App.tsx
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
29
30
31
32
33
34
35
36
37
import React from 'react';
import { SafeAreaView, StatusBar, LogBox } from 'react-native';
import PickABook from './src/core/PickABook';
import { createTheme, defaultDesignTokens, defaultTheme } from './src/theme';
LogBox.ignoreLogs(['Setting a timer']);
const App: React.FC = () => {
const otherTheme = createTheme({
...defaultDesignTokens,
colors: { ...defaultDesignTokens.colors, primary: '#f0f' },
});
otherTheme.steps = {
...otherTheme.steps,
progress: {
paddingHorizontal: 0,
height: '100%',
justifyContent: 'center',
backgroundColor: defaultDesignTokens.colors.bgSecondary,
bar: {
backgroundColor: defaultDesignTokens.colors.primary,
// @ts-ignore
height: '100%',
},
},
};
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={{ flex: 1 }}>
<PickABook config={{ apiKey: 'dOg5NBbZLtDlnEZ25bI93hqcMG99wi1q' }} theme={defaultTheme} style={{ flex: 1 }} />
</SafeAreaView>
</>
);
};
export default App;