-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
57 lines (54 loc) · 1.26 KB
/
Copy pathApp.tsx
File metadata and controls
57 lines (54 loc) · 1.26 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { PaperProvider } from "react-native-paper";
import { StyleSheet } from "react-native";
import { Provider } from "react-redux";
import { store } from "./src/store/store";
import AppNavigator from "./src/navigation/AppNavigator";
import Toast, { BaseToast, ErrorToast } from 'react-native-toast-message';
const toastConfig = {
success: (props) => (
<BaseToast
{...props}
style={{ borderLeftColor: '#25D366' }}
contentContainerStyle={{ paddingHorizontal: 15 }}
text1Style={{
fontSize: 15,
fontWeight: '500'
}}
text2Style={{
fontSize: 13
}}
/>
),
error: (props) => (
<ErrorToast
{...props}
style={{ borderLeftColor: '#FF0033' }}
contentContainerStyle={{ paddingHorizontal: 15 }}
text1Style={{
fontSize: 15,
fontWeight: '500'
}}
text2Style={{
fontSize: 13
}}
/>
),
};
export default function App() {
return (
<Provider store={store}>
<PaperProvider>
<AppNavigator />
<Toast config={toastConfig} />
</PaperProvider>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});