Skip to content

Commit

Permalink
Respect iOS light/darkmode (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Feb 7, 2024
1 parent ac505d9 commit 70f4c2f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
6 changes: 1 addition & 5 deletions native_gg/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ export default function App() {
}, [url]);

function openURL(url: string) {
const params = {
preferEphemeralSession: false,
};

console.log("Opening URL in WebBrowser");
WebBrowser.openAuthSessionAsync(url, null, params);
WebBrowser.openAuthSessionAsync(url, null);
}

return (
Expand Down
17 changes: 16 additions & 1 deletion native_gg/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"userInterfaceStyle": "automatic",
"assetBundlePatterns": [
"**/*"
],
Expand All @@ -18,7 +19,21 @@
]
},
"android": {
"package": "com.example.withnewarch"
"package": "com.example.withnewarch",
"intentFilters": [
{
"action": "VIEW",
"autoVerify": true,
"data": [
{
"scheme": "https",
"host": "guardianghost.com",
"pathPrefix": "/auth"
}
],
"category": ["BROWSABLE", "DEFAULT"]
}
]
},
"web": {
"favicon": "./assets/favicon.png"
Expand Down
2 changes: 1 addition & 1 deletion native_gg/ios/nativegg/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<string>Automatic</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
Expand Down
3 changes: 2 additions & 1 deletion native_gg/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true
"strict": true,
"noErrorTruncation": true,
}
}

0 comments on commit 70f4c2f

Please sign in to comment.