Revize cea63222
Přidáno uživatelem Schwobik před téměř 2 roky(ů)
App.tsx | ||
---|---|---|
1 | 1 |
import 'react-native-gesture-handler' |
2 |
import { StyleSheet} from 'react-native' |
|
3 |
import { NativeBaseProvider, Box } from "native-base" |
|
2 |
import { NativeBaseProvider } from "native-base" |
|
4 | 3 |
import { Provider } from "react-redux" |
5 | 4 |
import store from "./src/stores/store" |
6 |
import Navigation from "./src/components/Navigation"
|
|
5 |
import Navigation from "./src/pages/Navigation"
|
|
7 | 6 |
import { nativeBaseTheme } from "./src/theme/nativeBaseTheme" |
8 | 7 |
|
9 | 8 |
export default function App() { |
10 |
return ( |
|
11 |
<Provider store={store}>
|
|
12 |
<NativeBaseProvider theme={nativeBaseTheme}>
|
|
13 |
<Navigation/> |
|
14 |
</NativeBaseProvider> |
|
15 |
</Provider> |
|
16 |
) |
|
9 |
return (
|
|
10 |
<Provider store={ store }>
|
|
11 |
<NativeBaseProvider theme={ nativeBaseTheme }>
|
|
12 |
<Navigation/>
|
|
13 |
</NativeBaseProvider>
|
|
14 |
</Provider>
|
|
15 |
)
|
|
17 | 16 |
} |
18 |
|
|
19 |
const styles = StyleSheet.create({ |
|
20 |
container: { |
|
21 |
flex: 1, |
|
22 |
backgroundColor: '#fff', |
|
23 |
alignItems: 'center', |
|
24 |
justifyContent: 'center', |
|
25 |
}, |
|
26 |
}); |
src/components/reusables/ApplicationHeading.tsx | ||
---|---|---|
1 |
import { Heading } from "native-base" |
|
2 |
|
|
3 |
export const ApplicationHeading = () => { |
|
4 |
return ( |
|
5 |
<Heading |
|
6 |
size="2xl" |
|
7 |
color="primary.500" |
|
8 |
textAlign="center" |
|
9 |
maxW={"80%"} |
|
10 |
> |
|
11 |
Inventaria Rudolphina |
|
12 |
</Heading> |
|
13 |
) |
|
14 |
} |
Také k dispozici: Unified diff
Refactoring
re #10715