mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 20:06:10 +00:00
* build(mobile): upgrade to Expo SDK 58 and React Native 0.88 Expo 58 drops Zod from @expo/cli, which clears the last Zod 3 advisory (GHSA-mrhx-c7xc-m3w5) in mobile along with its local patch and override. - Expo 55 -> 58, React Native 0.83 -> 0.88, React 19.3, gesture-handler 3, webview 14, reanimated 4.7, worklets 0.13 (SDK 58 bundled versions, pinned below today's batch to respect minimumReleaseAge). - Port the react-native and react-native-webview patches unchanged; drop expo-constants, expo-notifications, @expo/cli, expo-router, zod and query-string patches plus the zod/query-string/xcode>uuid overrides, which upstream fixed or no longer need. - iOS minimum rises to 16.4 (Expo 58 / RN 0.88 requirement). - Migrate to RN 0.88 strict types: instance ref types, NamedStyles, AppState.currentState, list header/footer nulls. - Replace removed runtime APIs: InteractionManager -> idle callback with a macrotask fallback; StyleSheet.absoluteFillObject -> absoluteFill; FileHandle.readBytes -> readBytesSync (it became async). - Resolve react-native/asset-registry for shared assets in Metro and alias the old registry path for react-native-svg in the desktop mobile-web bundle. - Reduce the iOS scene plugin to the reconnect override; Expo 58's template now ships the scene delegate itself. * fix(mobile): bridge react-native-svg web imports and libsodium runtime for RN 0.88 - Share react-native-svg web shims between the mobile-web build and its render checks: map the old asset-registry path to react-native-web's registry and stub the Android-only touch-sound TurboModule. - Patch react-native-libsodium 1.7.0 to read the JSI runtime from the bridge proxy; RN 0.88 removed RCTCxxBridge.runtime. * fix(mobile): use Expo 58's legacy promise resolver for audio permissions * fix(mobile): skip null handles in the RPC recording timer shims for RN 0.88 types * style(mobile): format MobilePRSidebar after rebase * fix(mobile): name RN 0.88 text input refs for declarations; allow queued back in stack render check - Type text input refs with an exported interface so declaration emit can name hook results (RN 0.88 aliases TextInputInstance to an unexported class). - Expo Router 58 drains back() after a commit; check the interrupted push's exit from the frame it starts, bounded to three frames of lag. * chore(mobile): justify the text input handle interface for React Doctor * chore(mobile): use a nameable intersection alias for text input refs * fix(mobile): use sync expo-file-system writes, copies and moves on Expo 58 Expo 58 made File.write/copy/move and FileHandle.writeBytes return promises. Our callers never awaited them, so failures escaped their try/catch and the store's tmp-then-move and PDF writes could race their close or rename. * build(mobile): raise the page bundle budget to 10 MiB for Expo 58 Expo 58 adds about 310 KB to the page: expo-router (+258 KB, now carrying React Navigation, net about +110 KB) and Reanimated 4.7 (+152 KB). Main had 85 KB of headroom left. 10 MiB still stays within the 10 MiB per-asset contract. * fix(mobile): drop the window-metrics seed RN 0.88 removed from Android RN 0.88 no longer holds window metrics: DeviceInfoModule reads the activity's WindowMetrics on demand and setWindowDisplayMetrics is gone, so MainActivity no longer compiled. Layout scale still comes from the screen metrics we reseed. --------- Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
185 lines
3.9 KiB
TypeScript
185 lines
3.9 KiB
TypeScript
import { StyleSheet } from 'react-native'
|
|
import { colors, spacing, radii, typography } from '../src/theme/mobile-theme'
|
|
import { themedStyleSheet } from '../src/theme/themed-styles'
|
|
|
|
export const pairScanStyles = themedStyleSheet(() => ({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.bgBase,
|
|
padding: spacing.lg
|
|
},
|
|
backButton: {
|
|
width: 36,
|
|
height: 36,
|
|
borderRadius: radii.control,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
marginBottom: spacing.sm
|
|
},
|
|
steps: {
|
|
gap: spacing.sm,
|
|
marginBottom: spacing.lg,
|
|
marginLeft: 7
|
|
},
|
|
step: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
gap: spacing.sm
|
|
},
|
|
stepBadge: {
|
|
width: 22,
|
|
height: 22,
|
|
borderRadius: radii.pill,
|
|
backgroundColor: colors.bgRaised,
|
|
alignItems: 'center',
|
|
justifyContent: 'center'
|
|
},
|
|
stepNumber: {
|
|
fontSize: 12,
|
|
fontWeight: '700',
|
|
color: colors.textSecondary
|
|
},
|
|
stepText: {
|
|
fontSize: typography.bodySize,
|
|
color: colors.textSecondary
|
|
},
|
|
cameraWrap: {
|
|
flex: 1,
|
|
borderRadius: radii.surface,
|
|
overflow: 'hidden'
|
|
},
|
|
// Reserve the camera slot during paste mode so the bottom action cannot jump upward.
|
|
cameraPlaceholder: {
|
|
flex: 1,
|
|
backgroundColor: colors.bgPanel,
|
|
borderRadius: radii.surface
|
|
},
|
|
camera: {
|
|
...StyleSheet.absoluteFill
|
|
},
|
|
reticle: {
|
|
...StyleSheet.absoluteFill,
|
|
alignItems: 'center',
|
|
justifyContent: 'center'
|
|
},
|
|
reticleFrame: {
|
|
position: 'relative'
|
|
},
|
|
corner: {
|
|
position: 'absolute',
|
|
width: 28,
|
|
height: 28,
|
|
borderColor: 'rgba(255,255,255,0.7)'
|
|
},
|
|
cornerTL: {
|
|
top: 0,
|
|
left: 0,
|
|
borderTopWidth: 2.5,
|
|
borderLeftWidth: 2.5,
|
|
borderTopLeftRadius: radii.mark
|
|
},
|
|
cornerTR: {
|
|
top: 0,
|
|
right: 0,
|
|
borderTopWidth: 2.5,
|
|
borderRightWidth: 2.5,
|
|
borderTopRightRadius: radii.mark
|
|
},
|
|
cornerBL: {
|
|
bottom: 0,
|
|
left: 0,
|
|
borderBottomWidth: 2.5,
|
|
borderLeftWidth: 2.5,
|
|
borderBottomLeftRadius: radii.mark
|
|
},
|
|
cornerBR: {
|
|
bottom: 0,
|
|
right: 0,
|
|
borderBottomWidth: 2.5,
|
|
borderRightWidth: 2.5,
|
|
borderBottomRightRadius: radii.mark
|
|
},
|
|
centered: {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
justifyContent: 'center'
|
|
},
|
|
title: {
|
|
fontSize: typography.titleSize,
|
|
fontWeight: '600',
|
|
color: colors.textPrimary,
|
|
marginBottom: spacing.sm
|
|
},
|
|
subtitle: {
|
|
maxWidth: 310,
|
|
fontSize: typography.bodySize,
|
|
color: colors.textSecondary,
|
|
textAlign: 'center',
|
|
marginBottom: spacing.xl,
|
|
lineHeight: 20
|
|
},
|
|
connectingText: {
|
|
color: colors.textSecondary,
|
|
fontSize: typography.bodySize,
|
|
marginTop: spacing.lg
|
|
},
|
|
logSlot: {
|
|
width: '100%',
|
|
marginTop: spacing.lg,
|
|
paddingHorizontal: spacing.sm
|
|
},
|
|
errorText: {
|
|
color: colors.statusRed,
|
|
fontSize: typography.bodySize,
|
|
textAlign: 'center',
|
|
marginBottom: spacing.xl,
|
|
lineHeight: 20
|
|
},
|
|
primaryButton: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
gap: spacing.xs,
|
|
backgroundColor: colors.textPrimary,
|
|
paddingHorizontal: spacing.xl,
|
|
paddingVertical: spacing.sm + 2,
|
|
borderRadius: radii.control
|
|
},
|
|
primaryButtonText: {
|
|
color: colors.bgBase,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '600'
|
|
},
|
|
pasteButton: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
gap: spacing.xs,
|
|
marginTop: spacing.md,
|
|
paddingVertical: spacing.sm,
|
|
borderRadius: radii.control
|
|
},
|
|
pasteButtonPressed: {
|
|
opacity: 0.6
|
|
},
|
|
pasteButtonText: {
|
|
color: colors.textSecondary,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '500'
|
|
},
|
|
errorActions: {
|
|
alignItems: 'center',
|
|
gap: spacing.sm
|
|
},
|
|
secondaryButton: {
|
|
paddingHorizontal: spacing.xl,
|
|
paddingVertical: spacing.sm,
|
|
borderRadius: radii.control
|
|
},
|
|
secondaryButtonText: {
|
|
color: colors.textSecondary,
|
|
fontSize: typography.bodySize,
|
|
fontWeight: '500'
|
|
}
|
|
}))
|