Skip to content

Commit

Permalink
Move preferences to the back
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon committed Jul 10, 2020
1 parent 0a08ebc commit 29c599d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions client/src/components/AchievementPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ class BouncingCircle extends React.Component {
];

_reset = () => {
console.log("tag");

this.reset();
this.animate();
};
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function Footer({ game, screenshot, navigation }) {
if (!Settings.isPromo) {
views.push(<ChallengesButton onPress={onChallengesPress} />);
}
views.push(<PreferencesButton onPress={onPreferencesPress} />);

const onLeaderboardPress = () => {
if (Settings.isFirebaseEnabled) {
Expand All @@ -87,6 +86,8 @@ function Footer({ game, screenshot, navigation }) {
views.push(<AdButton />);
adMargin += 48;
}
views.push(<PreferencesButton onPress={onPreferencesPress} />);

return (
<View style={[styles.container, { marginBottom: bottom + adMargin }]}>
{views.map((view, index) => {
Expand Down
1 change: 0 additions & 1 deletion client/src/screens/AchievementScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function AchievementScreen({ showActionSheetWithOptions, achievements }) {
const [filter, setFilter] = React.useState("All");

const _onOpenActionSheet = () => {
console.log("pressed");
const options = ["All", "Completed", "Cancel"];
const cancelButtonIndex = options.length - 1;

Expand Down
8 changes: 4 additions & 4 deletions client/src/screens/PreferencesScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function PreferencesScreen({
);
},
},
{
Platform.OS !== "web" && {
title: "🎥 Watch an ad",
onPress: async () => {
// Display a rewarded ad
Expand Down Expand Up @@ -195,7 +195,7 @@ function PreferencesScreen({
navigation.navigate("Licenses");
},
},
{
Platform.OS !== "web" && {
title: "Deep Linking Scheme",
value: `${Constants.manifest.scheme}://`,
},
Expand All @@ -210,11 +210,11 @@ function PreferencesScreen({
web: null,
ios: {
title: "Bundle ID",
value: Constants.manifest.ios.bundleIdentifier,
value: Constants.manifest?.ios?.bundleIdentifier,
},
android: {
title: "Package Name",
value: Constants.manifest.android["package"],
value: Constants.manifest?.android?.["package"],
},
}),
].filter(Boolean),
Expand Down

0 comments on commit 29c599d

Please sign in to comment.