Skip to content

Commit

Permalink
feat: replace button with react-native-paper button
Browse files Browse the repository at this point in the history
  • Loading branch information
xianshenglu committed Apr 28, 2022
1 parent df627fe commit 131dec9
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 13 deletions.
25 changes: 18 additions & 7 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { StatusBar } from 'expo-status-bar';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { DefaultTheme, Provider as PaperProvider } from "react-native-paper";

import useCachedResources from './hooks/useCachedResources';
import useColorScheme from './hooks/useColorScheme';
import Navigation from './navigation';
import useCachedResources from "./hooks/useCachedResources";
import useColorScheme from "./hooks/useColorScheme";
import Navigation from "./navigation";

const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: "#2196f3",
},
};

export default function App() {
const isLoadingComplete = useCachedResources();
Expand All @@ -13,10 +22,12 @@ export default function App() {
return null;
} else {
return (
<SafeAreaProvider>
<Navigation colorScheme={colorScheme} />
<StatusBar />
</SafeAreaProvider>
<PaperProvider theme={theme}>
<SafeAreaProvider>
<Navigation colorScheme={colorScheme} />
<StatusBar />
</SafeAreaProvider>
</PaperProvider>
);
}
}
282 changes: 282 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-paper": "^4.12.1",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.10.1",
"react-native-web": "0.17.1",
Expand Down
Loading

0 comments on commit 131dec9

Please sign in to comment.