Skip to content

Commit ccab027

Browse files
committed
(fix): iOS fixes and rename Hacker News
1 parent 06cafc8 commit ccab027

4 files changed

Lines changed: 19 additions & 9 deletions

File tree

apps/polycentric/app/(tabs)/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export default function TabsLayout() {
3535
<NativeTabs.Trigger.Icon sf="bell" md="notifications" />
3636
</NativeTabs.Trigger>
3737

38-
<NativeTabs.Trigger name="verify">
39-
<NativeTabs.Trigger.Label>Verify</NativeTabs.Trigger.Label>
38+
<NativeTabs.Trigger name="verifications">
39+
<NativeTabs.Trigger.Label>Verifications</NativeTabs.Trigger.Label>
4040
<NativeTabs.Trigger.Icon sf="checkmark.seal" md="verified" />
4141
</NativeTabs.Trigger>
4242

apps/polycentric/src/features/verifications/PlatformPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const PLATFORMS: Platform[] = [
6262
placeholder: 'discord.gg/futo',
6363
},
6464
{
65-
name: 'HackerNews',
65+
name: 'Hacker News',
6666
logo: brandLogo('hacker-news'),
6767
color: 'warning_500',
6868
location: 'about section',

apps/polycentric/src/features/verifications/VerificationsScreen.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ import { Text } from '@/src/common/components';
22
import { Screen } from '@/src/common/components/layout';
33
import Topbar from '@/src/common/components/layout/Topbar';
44
import { ScrollView } from '@/src/common/components/ScrollView';
5-
import { Atoms, useTheme } from '@/src/common/theme';
5+
import { Atoms, Spacing, useTheme } from '@/src/common/theme';
66
import { isWeb } from '@/src/common/util/platform';
77
import { useState } from 'react';
88
import { View } from 'react-native';
99
import { CreateClaim } from './CreateClaim';
1010
import { SelectChip } from './SelectChip';
11+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
1112

1213
type Mode = 'create' | 'verify';
1314

1415
export default function VerificationsScreen() {
1516
const { theme } = useTheme();
17+
const insets = useSafeAreaInsets();
1618
const [mode, setMode] = useState<Mode>();
1719

1820
const select = (next: Mode) =>
@@ -27,7 +29,15 @@ export default function VerificationsScreen() {
2729
)}
2830
showsVerticalScrollIndicator={false}
2931
>
30-
<View style={[Atoms.p_lg, Atoms.gap_2xl]}>
32+
<View
33+
style={[
34+
Atoms.p_lg,
35+
Atoms.gap_2xl,
36+
{
37+
paddingBottom: insets.bottom + Spacing['lg'],
38+
},
39+
]}
40+
>
3141
<View style={[Atoms.flex_row, Atoms.gap_sm, Atoms.flex_wrap]}>
3242
<SelectChip
3343
title="Create a claim"

packages/react-native/PolycentricReactNativeFramework.xcframework/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<key>BinaryPath</key>
99
<string>libpolycentric_core.a</string>
1010
<key>LibraryIdentifier</key>
11-
<string>ios-arm64</string>
11+
<string>ios-arm64-simulator</string>
1212
<key>LibraryPath</key>
1313
<string>libpolycentric_core.a</string>
1414
<key>SupportedArchitectures</key>
@@ -17,12 +17,14 @@
1717
</array>
1818
<key>SupportedPlatform</key>
1919
<string>ios</string>
20+
<key>SupportedPlatformVariant</key>
21+
<string>simulator</string>
2022
</dict>
2123
<dict>
2224
<key>BinaryPath</key>
2325
<string>libpolycentric_core.a</string>
2426
<key>LibraryIdentifier</key>
25-
<string>ios-arm64-simulator</string>
27+
<string>ios-arm64</string>
2628
<key>LibraryPath</key>
2729
<string>libpolycentric_core.a</string>
2830
<key>SupportedArchitectures</key>
@@ -31,8 +33,6 @@
3133
</array>
3234
<key>SupportedPlatform</key>
3335
<string>ios</string>
34-
<key>SupportedPlatformVariant</key>
35-
<string>simulator</string>
3636
</dict>
3737
</array>
3838
<key>CFBundlePackageType</key>

0 commit comments

Comments
 (0)