diff --git a/en/react-native-camera-kit.md b/en/react-native-camera-kit.md index cf997300cee7b307dec20142d32c9e18d7fced69..be772f48bd034fac16ed50f45cf2fddca2819a66 100644 --- a/en/react-native-camera-kit.md +++ b/en/react-native-camera-kit.md @@ -396,7 +396,7 @@ Open `entry/src/main/resources/base/element/string.json` and add the following i | onOrientationChange | Callback when physical device orientation changes. Returned event contains orientation. Ex: onOrientationChange={(event) => console.log(event.nativeEvent.orientation)}. Use import { Orientation } from 'react-native-camera-kit'; if (event.nativeEvent.orientation === Orientation.PORTRAIT) { ... } to understand the new value | Function | no | iOS | no | | onError | Android only. Callback when camera fails to initialize. Ex: onError={(e) => console.log(e.nativeEvent.errorMessage)}. | Function | no | Android | yes | | resetFocusTimeout | Dismiss tap to focus after this many milliseconds. Default 0 (disabled). Example: 5000 is 5 seconds. | Number | no | All | yes | -| scanThrottleDelay | Duration between scan detection in milliseconds. Default 2000 (2s) | Number | no | All | yes | +| scanThrottleDelay | Duration between scan detection in milliseconds. Default 2000 (2s) if you need to dynamically set this value, you need to add the key parameter to force refresh this component | Number | no | All | yes | | scanBarcode | Enable barcode scanner. Default: `false` | boolean | no | All | yes | | showFrame | Show frame in barcode scanner. Default: `false` | boolean | no | All | yes | | laserColor | Color of barcode scanner laser visualization. Default: `red` | string | no | All | yes | diff --git a/zh-cn/react-native-camera-kit.md b/zh-cn/react-native-camera-kit.md index 993803da8f6af12bb5395386274f71679e6196e6..7141fd30102c1ba613abc561a603fa74f43fa4b9 100644 --- a/zh-cn/react-native-camera-kit.md +++ b/zh-cn/react-native-camera-kit.md @@ -394,7 +394,7 @@ ohpm install | onOrientationChange | Callback when physical device orientation changes. Returned event contains orientation. Ex: onOrientationChange={(event) => console.log(event.nativeEvent.orientation)}. Use import { Orientation } from 'react-native-camera-kit'; if (event.nativeEvent.orientation === Orientation.PORTRAIT) { ... } to understand the new value | Function | no | iOS | no | | onError | Android only. Callback when camera fails to initialize. Ex: onError={(e) => console.log(e.nativeEvent.errorMessage)}. | Function | no | Android | yes | | resetFocusTimeout | Dismiss tap to focus after this many milliseconds. Default 0 (disabled). Example: 5000 is 5 seconds. | Number | no | All | yes | -| scanThrottleDelay | Duration between scan detection in milliseconds. Default 2000 (2s) | Number | no | All | yes | +| scanThrottleDelay | Duration between scan detection in milliseconds. Default 2000 (2s) if you need to dynamically set this value, you need to add the key parameter to force refresh this component | Number | no | All | yes | | scanBarcode | Enable barcode scanner. Default: `false` | boolean | no | All | yes | | showFrame | Show frame in barcode scanner. Default: `false` | boolean | no | All | yes | | laserColor | Color of barcode scanner laser visualization. Default: `red` | string | no | All | yes |