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
178 changes: 90 additions & 88 deletions example/react-native/ios/Podfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"fast-base64-decode": "*",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-mmkv": "^4.1.2",
"react-native-mmkv": "4.2.0",
"react-native-safe-area-context": "^5.5.2",
"react-native-screens": "^4.24.0"
},
Expand All @@ -72,7 +72,7 @@
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"react-test-renderer": "19.2.0",
"typescript": "^5.8.3"
},
Expand Down
24 changes: 21 additions & 3 deletions example/react-native/pages/AutoSizeInputTestPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export function AutoSizeInputTestPage() {
const [singleLineText, setSingleLineText] = useState('');
const [multiLineText, setMultiLineText] = useState('');
const [autoWidthText, setAutoWidthText] = useState('');
// Event-count mirrors for the controlled inputs (mostRecentEventCount
// protocol): incremented on every change callback so a stale controlled
// echo is rejected natively instead of overwriting newer typed text.
const [singleLineEventCount, setSingleLineEventCount] = useState(0);
const [multiLineEventCount, setMultiLineEventCount] = useState(0);
const [autoWidthEventCount, setAutoWidthEventCount] = useState(0);
const [focusStatus, setFocusStatus] = useState('');
const [editable, setEditable] = useState(true);

Expand All @@ -25,14 +31,18 @@ export function AutoSizeInputTestPage() {
<AutoSizeInputView
ref={singleLineRef}
style={styles.input}
mostRecentEventCount={singleLineEventCount}
text={singleLineText}
placeholder="Type to see font shrink..."
fontSize={36}
minFontSize={12}
textColor="#333333"
placeholderColor="#AAAAAA"
selectionColor="#007AFF"
onChangeText={callback(useCallback((text: string) => setSingleLineText(text), []))}
onChangeText={callback(useCallback((text: string) => {
setSingleLineEventCount((eventCount) => eventCount + 1);
setSingleLineText(text);
}, []))}
onFocus={callback(useCallback(() => setFocusStatus('Single line focused'), []))}
onBlur={callback(useCallback(() => setFocusStatus('Single line blurred'), []))}
/>
Expand Down Expand Up @@ -89,6 +99,7 @@ export function AutoSizeInputTestPage() {
<View style={styles.autoWidthContainer}>
<AutoSizeInputView
style={styles.autoWidthInput}
mostRecentEventCount={autoWidthEventCount}
text={autoWidthText}
contentAutoWidth={true}
prefix="$"
Expand All @@ -102,7 +113,10 @@ export function AutoSizeInputTestPage() {
prefixMarginRight={4}
suffixMarginLeft={8}
keyboardType="decimalPad"
onChangeText={callback(useCallback((text: string) => setAutoWidthText(text), []))}
onChangeText={callback(useCallback((text: string) => {
setAutoWidthEventCount((eventCount) => eventCount + 1);
setAutoWidthText(text);
}, []))}
/>
</View>

Expand Down Expand Up @@ -154,6 +168,7 @@ export function AutoSizeInputTestPage() {
<AutoSizeInputView
ref={multiLineRef}
style={styles.multiLineInput}
mostRecentEventCount={multiLineEventCount}
text={multiLineText}
multiline={true}
maxNumberOfLines={3}
Expand All @@ -163,7 +178,10 @@ export function AutoSizeInputTestPage() {
textColor="#333333"
placeholderColor="#AAAAAA"
selectionColor="#34C759"
onChangeText={callback(useCallback((text: string) => setMultiLineText(text), []))}
onChangeText={callback(useCallback((text: string) => {
setMultiLineEventCount((eventCount) => eventCount + 1);
setMultiLineText(text);
}, []))}
onFocus={callback(useCallback(() => setFocusStatus('Multi line focused'), []))}
onBlur={callback(useCallback(() => setFocusStatus('Multi line blurred'), []))}
/>
Expand Down
11 changes: 5 additions & 6 deletions native-modules/native-logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-native-logger",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-native-logger",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -78,20 +78,20 @@
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"lefthook": "^2.0.3",
"nitrogen": "0.31.10",
"nitrogen": "0.35.2",
"prettier": "^2.8.8",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-builder-bob": "^0.40.13",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"release-it": "^19.0.4",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "0.33.2"
"react-native-nitro-modules": "0.35.2"
},
"react-native-builder-bob": {
"source": "src",
Expand Down Expand Up @@ -166,6 +166,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
5 changes: 2 additions & 3 deletions native-modules/react-native-aes-crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-aes-crypto",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-aes-crypto",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -158,6 +158,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
11 changes: 5 additions & 6 deletions native-modules/react-native-app-update/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-app-update",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-app-update",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -78,20 +78,20 @@
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"lefthook": "^2.0.3",
"nitrogen": "0.31.10",
"nitrogen": "0.35.2",
"prettier": "^2.8.8",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-builder-bob": "^0.40.13",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"release-it": "^19.0.4",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "0.33.2"
"react-native-nitro-modules": "0.35.2"
},
"react-native-builder-bob": {
"source": "src",
Expand Down Expand Up @@ -166,6 +166,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
5 changes: 2 additions & 3 deletions native-modules/react-native-async-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-async-storage",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-async-storage",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -164,6 +164,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
5 changes: 2 additions & 3 deletions native-modules/react-native-background-thread/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-background-thread",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-background-thread",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -167,6 +167,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
11 changes: 5 additions & 6 deletions native-modules/react-native-bundle-crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-bundle-crypto",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-bundle-crypto",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -77,20 +77,20 @@
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"lefthook": "^2.0.3",
"nitrogen": "0.31.10",
"nitrogen": "0.35.2",
"prettier": "^2.8.8",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-builder-bob": "^0.40.13",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"release-it": "^19.0.4",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "0.33.2"
"react-native-nitro-modules": "0.35.2"
},
"react-native-builder-bob": {
"source": "src",
Expand Down Expand Up @@ -165,6 +165,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
11 changes: 5 additions & 6 deletions native-modules/react-native-bundle-update/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-bundle-update",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-bundle-update",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -78,20 +78,20 @@
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"lefthook": "^2.0.3",
"nitrogen": "0.31.10",
"nitrogen": "0.35.2",
"prettier": "^2.8.8",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-builder-bob": "^0.40.13",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"release-it": "^19.0.4",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "0.33.2"
"react-native-nitro-modules": "0.35.2"
},
"react-native-builder-bob": {
"source": "src",
Expand Down Expand Up @@ -166,6 +166,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-check-biometric-auth-changed",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-check-biometric-auth-changed",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -78,20 +78,20 @@
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"lefthook": "^2.0.3",
"nitrogen": "0.31.10",
"nitrogen": "0.35.2",
"prettier": "^2.8.8",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-builder-bob": "^0.40.13",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"release-it": "^19.0.4",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "0.33.2"
"react-native-nitro-modules": "0.35.2"
},
"react-native-builder-bob": {
"source": "src",
Expand Down Expand Up @@ -166,6 +166,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
5 changes: 2 additions & 3 deletions native-modules/react-native-cloud-fs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-cloud-fs",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-cloud-fs TurboModule for OneKey",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -89,6 +89,5 @@
"RNCloudFs": "CloudFs"
}
}
},
"stableVersion": "3.0.80"
}
}
11 changes: 5 additions & 6 deletions native-modules/react-native-cloud-kit-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-cloud-kit-module",
"version": "3.0.81-alpha.8",
"version": "3.0.82",
"description": "react-native-cloud-kit-module",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -78,20 +78,20 @@
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"lefthook": "^2.0.3",
"nitrogen": "0.31.10",
"nitrogen": "0.35.2",
"prettier": "^2.8.8",
"react": "19.2.0",
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
"react-native-builder-bob": "^0.40.13",
"react-native-nitro-modules": "0.33.2",
"react-native-nitro-modules": "0.35.2",
"release-it": "^19.0.4",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "0.33.2"
"react-native-nitro-modules": "0.35.2"
},
"react-native-builder-bob": {
"source": "src",
Expand Down Expand Up @@ -166,6 +166,5 @@
"release-it"
],
"version": "0.56.0"
},
"stableVersion": "3.0.80"
}
}
Loading