From 2308ac47f65dbe5da1c8fd68c9ee89c21e4910fc Mon Sep 17 00:00:00 2001 From: Arthi-chaud Date: Mon, 11 Jul 2022 10:51:01 +0200 Subject: [PATCH] Front: Wrap App w/ React Native Paper's Provider --- front/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/front/App.tsx b/front/App.tsx index 1bbcd7d..a1f2aee 100644 --- a/front/App.tsx +++ b/front/App.tsx @@ -1,6 +1,7 @@ import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View, ColorValue } from 'react-native'; import ColorTheme from './Theme'; +import { Provider as PaperProvider } from 'react-native-paper'; const ExampleBox = (props: { textColor: ColorValue, backgroundColor: ColorValue }) => ( @@ -10,6 +11,7 @@ const ExampleBox = (props: { textColor: ColorValue, backgroundColor: ColorValue export default function App() { return ( + @@ -29,13 +31,14 @@ export default function App() { /> + ); } const styles = StyleSheet.create({ container: { flex: 1, - backgroundColor: ColorTheme.backgroundDark, + backgroundColor: ColorTheme.backgroundLight, justifyContent: 'center', }, });