Skip to content

Commit

Permalink
Merge pull request #12 from chowzzzz/aer-branch
Browse files Browse the repository at this point in the history
fix errors on expo mobile
  • Loading branch information
aerinng authored Jul 12, 2021
2 parents 555b557 + a546bed commit e444f88
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'lodash';
7 changes: 2 additions & 5 deletions navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,12 @@ function RootNavigator() {
.get()
.then((snapshot) => {
const data = snapshot.val();
setLoading(false);
setUser(data);
})
.catch((error) => {
setLoading(false);
});
} else {
setLoading(false);
}
}
setLoading(false);
});
}, []);

Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion screens/BabyGame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const styles = StyleSheet.create({
padding: 4,
borderRadius: 6,
textAlign: "center",
borderColor: "c4c3f7",
borderColor: "#c4c3f7",
borderWidth: 2,
height: 175,
width: '100%',
Expand Down
2 changes: 1 addition & 1 deletion screens/FinalResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const styles = StyleSheet.create({
padding:8,
borderRadius: 6,
textAlign: "center",
borderColor: "c4c3f7",
borderColor: "#c4c3f7",
borderWidth: 2,
height: 95,
width: '90%',
Expand Down
5 changes: 2 additions & 3 deletions screens/TabOneScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from "react-native";
import { Card, ListItem, Button, Icon } from "react-native-elements";
import RNPoll, { IChoice } from "react-native-poll";
import _ from 'lodash';
import Search from "../components/Search";
import PersonalityModalScreen from "./PersonalityModalScreen";
import AngelScreen from "./AngelScreen";
Expand Down Expand Up @@ -159,7 +160,7 @@ const Post = ({ title, imageUrl, username, caption, likes, url }) => (
<TouchableOpacity
style={{ textDecorationLine: "underline", marginVertical: 5 }}
>
{url}
<Text>{url}</Text>
</TouchableOpacity>
</Card>
);
Expand Down Expand Up @@ -277,7 +278,6 @@ export default class TabOneScreen extends React.Component {
<Text
style={{
fontSize: 15,
fontFamily: "sans-serif",
marginBottom: 5
}}
>
Expand All @@ -286,7 +286,6 @@ export default class TabOneScreen extends React.Component {
<Text
style={{
fontSize: 25,
fontFamily: "sans-serif",
fontWeight: "bold"
}}
>
Expand Down
4 changes: 3 additions & 1 deletion screens/TabThreeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ const styles = StyleSheet.create({
width: "85%",
justifyContent: "center",
alignItems: "center",
border: "solid lightgrey 0.5px",
borderColor: "lightgrey",
borderStyle: "solid",
borderWidth: 1,
backgroundColor: "#FFF",
marginVertical: 10,
shadowColor: "#6c69eb",
Expand Down

0 comments on commit e444f88

Please sign in to comment.