Skip to content

Commit

Permalink
💄 Android settings screen UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
guytepper committed Apr 28, 2021
1 parent 67d183f commit d4f4015
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ android {
applicationId "com.betterrail"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionCode 3
versionName "1.0"
}
splits {
Expand Down
5 changes: 4 additions & 1 deletion app/navigators/settings/settings-navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const SettingsNavigator = () => (
stackPresentation: "modal",
headerTintColor: color.primary,
headerStatusBarHeight: Platform.select({ ios: 10, android: 5 }),
headerTitleStyle: { fontSize: 20, fontFamily: typography.primary, fontWeight: "400", marginRight: 10, marginBottom: 10 },
headerBackTitleStyle: { fontFamily: typography.primary },
}}
>
Expand All @@ -26,6 +25,10 @@ export const SettingsNavigator = () => (
component={SettingsScreen}
options={({ navigation }) => ({
title: "הגדרות",
headerTitleStyle: Platform.select({
ios: { fontSize: 20, fontFamily: typography.primary, fontWeight: "400", marginRight: 10, marginBottom: 10 },
android: { marginLeft: -18.5, marginBottom: 10 },
}),
headerLeft: () => <CloseIcon onPress={() => navigation.goBack()} />,
})}
/>
Expand Down
26 changes: 14 additions & 12 deletions app/screens/settings/settings-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,20 @@ const storeLink = Platform.select({ ios: "https://apps.apple.com/app/better-rail
export const SettingsScreen = observer(function SettingsScreen() {
return (
<Screen style={ROOT} preset="scroll" unsafe={true}>
<View style={SETTING_GROUP}>
<SettingBox
first
last={Platform.select({ ios: false, android: true })}
title="שתפו את Better Rail"
icon="🕺"
onPress={() =>
Share.share({ message: "Better Rail - האלטרנטיבה לאפליקציית רכבת ישראל", url: "https://better-rail.co.il" })
}
/>
{Platform.OS === "ios" && <SettingBox title="דרגו ב- App Store" icon="⭐️" onPress={() => Linking.openURL(storeLink)} />}
</View>
{Platform.OS === "ios" && (
<View style={SETTING_GROUP}>
<SettingBox
first
last={Platform.select({ ios: false, android: true })}
title="שתפו את Better Rail"
icon="🕺"
onPress={() =>
Share.share({ message: "Better Rail - האלטרנטיבה לאפליקציית רכבת ישראל", url: "https://better-rail.co.il" })
}
/>
<SettingBox title="דרגו ב- App Store" icon="⭐️" onPress={() => Linking.openURL(storeLink)} />
</View>
)}

<View style={SETTING_GROUP}>
<SettingBox
Expand Down
4 changes: 2 additions & 2 deletions ios/BetterRail.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = UE6BVYPPFX;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = BetterRail/Info.plist;
Expand Down Expand Up @@ -726,7 +726,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = UE6BVYPPFX;
INFOPLIST_FILE = BetterRail/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
Expand Down

0 comments on commit d4f4015

Please sign in to comment.