Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/rn-sample/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ const monorepoRoot = path.resolve(projectRoot, '../..');
const config = getDefaultConfig(projectRoot);

// 1. Watch all files within the monorepo
// eslint-disable-next-line @silverhand/fp/no-mutation
config.watchFolders = [monorepoRoot];
// 2. Let Metro know where to resolve packages and in what order
// eslint-disable-next-line @silverhand/fp/no-mutation
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, 'node_modules'),
path.resolve(monorepoRoot, 'node_modules'),
Expand Down
18 changes: 9 additions & 9 deletions packages/rn-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
"ios": "expo run:ios"
},
"dependencies": {
"@expo/metro-runtime": "~3.2.1",
"@expo/metro-runtime": "~4.0.1",
"@logto/rn": "workspace:^",
"@react-native-async-storage/async-storage": "^1.23.1",
"expo": "~51.0.39",
"expo-crypto": "^13.0.2",
"expo-secure-store": "^13.0.1",
"expo-status-bar": "~1.12.1",
"expo-web-browser": "^13.0.3",
"expo": "~52.0.37",
"expo-crypto": "^14.0.2",
"expo-secure-store": "^14.0.1",
"expo-status-bar": "~2.0.1",
"expo-web-browser": "^14.0.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.74.6",
"react-native-web": "~0.19.6"
"react-native": "~0.76.7",
"react-native-web": "~0.19.13"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/core": "^7.25.2",
"@silverhand/eslint-config": "^6.0.1",
"@silverhand/eslint-config-react": "^6.0.2",
"@types/react": "~18.3.0",
Expand Down
1 change: 1 addition & 0 deletions packages/rn-sample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "expo/tsconfig.base",
"compilerOptions": {
"moduleResolution": "bundler",
"jsx": "react-jsx",
"strict": true
}
}
10 changes: 5 additions & 5 deletions packages/rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.4.0",
"version": "1.0.0",
"type": "module",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -56,9 +56,9 @@
},
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.23.1",
"expo-crypto": "^13.0.2",
"expo-secure-store": "^13.0.1",
"expo-web-browser": "^13.0.3",
"react-native": ">=0.74.1 <1"
"expo-crypto": "^14.0.2",
"expo-secure-store": "^14.0.1",
"expo-web-browser": "^14.0.2",
"react-native": ">=0.76.0 <1"
}
}
1 change: 1 addition & 0 deletions packages/rn/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class LogtoClient extends StandardLogtoClient {
this.authSessionResult = undefined;
this.authSessionResult = await WebBrowser.openAuthSessionAsync(url, redirectUri, {
preferEphemeralSession: config.preferEphemeralSession ?? true,
createTask: false,
});
break;
}
Expand Down
Loading
Loading