You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(deps): upgrade react-native-quick-base64 to v3 for New Architecture
v2.x throws `Base64Module.install is not a function` on React Native
New Architecture (default in Expo SDK 54+) because the legacy bridge
install method is not exposed via NativeModules under bridgeless mode.
v3.0.0 ships a Codegen TurboModule and dropped the install side effect.
Replace the `require('react-native-quick-base64')` side effect in
QuickCrypto's `install()` with explicit calls to v3's `toByteArray` /
`fromByteArray`, assigning `global.base64ToArrayBuffer` and
`global.base64FromArrayBuffer` directly. Declare those globals in the
package so consumers get the types. Bump `@craftzdog/react-native-
buffer` to 6.1.2 (v3-compatible) and pin all touched versions per the
new code-typescript rule (no caret/tilde ranges).
Fixes the `Base64Module.install is not a function` runtime error
reported on vanilla Expo SDK 54/55 setups.
Copy file name to clipboardExpand all lines: .agents/rules/code-typescript.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Applies to `*.ts` and `*.tsx`.
17
17
- Write explicit return types.
18
18
- Keep functions minimal and modular.
19
19
- Use Bun for package management; do not use npm/yarn/pnpm.
20
+
- Pin dependency versions exactly in `package.json`. No caret (`^`) or tilde (`~`) ranges. Applies to `dependencies`, `devDependencies`, and `peerDependencies`. Use the version `bun.lock` resolved.
20
21
- For React, minimize `useEffect`; use named effect functions if unavoidable.
0 commit comments