Fixed theme incorrectly placed
This commit is contained in:
parent
bd8d1fb31e
commit
2b4f13cdb7
@ -1,19 +1,20 @@
|
|||||||
import {Dialog, Title, useTheme} from "react-native-paper";
|
import {Title, useTheme} from "react-native-paper";
|
||||||
import { Image } from "react-native";
|
import { Image, View } from "react-native";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
const theme = useTheme();
|
|
||||||
|
|
||||||
const Broken = () => {
|
const Broken = () => {
|
||||||
|
const theme = useTheme();
|
||||||
return (
|
return (
|
||||||
<Dialog.Content>
|
<View>
|
||||||
<Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>The Internet is a Series of Tubes</Title>
|
<Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>The Internet is a Series of Tubes</Title>
|
||||||
<Image
|
<Image
|
||||||
source={require("../assets/images/broken.png")}
|
source={require("../assets/images/broken.png")}
|
||||||
style={{ alignSelf: 'center', resizeMode: "contain", height: 400/3 }}
|
style={{ alignSelf: 'center', resizeMode: "contain", height: 400/3 }}
|
||||||
/>
|
/>
|
||||||
<Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>And these aren't connected. {"\n"} (We're still working on this part.)</Title>
|
<Title style={{color: theme.colors.onBackground, fontSize: 16, textAlign: 'center', fontFamily: "Light"}}>And these aren't connected. {"\n"} (We're still working on this part.)</Title>
|
||||||
</Dialog.Content>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user