Loading...
Loading...
Design and review predictable public APIs for TypeScript, JavaScript, React, and React Native libraries. Use when shaping exported functions, classes, hooks, options objects, event and listener APIs, error behavior, naming, cross-platform abstractions, or JS-only packages. Pair with build-nitro-modules when the library is backed by Nitro.
npx skill4agent add margelo/react-native-skills api-designbuild-nitro-modulesllms.txtllms-full.txttimeoutMs?: numberenableTimeout: booleantimeoutMs?: numbernumbernumber | string | bigint | object | nullenum'enabled' | 'disabled'barcodebarcodeTypeScannedBarcodeScannedDataRecognizedTextDataTypeRecognizedBarcodeDataTyperecognizedDataTypes: RecognizedDataType[]RecognizedDataTypeundefinednullas const satisfies Record<string, Type>platformPlatform.OSavailableTextTypes: []supportedFormats: []iosandroidBarcodeScannerTextScannercreateTextScanner()isTextScannerAvailable: falseTextScannercan*can*configureconnectstartsession.configure(device, outputs)ControllersetZoom(...)focusTo(...)SessiononConfiguredresolve...(...)undefinedtargetFormats: 'all' | BarcodeFormat[]TargetBarcodeFormat = BarcodeFormat | 'all'prepare()initialize()load()start()stop()undefinedstringArrayBufferinterface ScannedData {
position: Point
text?: string
barcode?: string
barcodeType?: BarcodeType
face?: Rect
}interface ScannedData {
position: Point
}
interface ScannedText extends ScannedData {
text: string
}
interface ScannedBarcode extends ScannedData {
barcode: string
barcodeType: BarcodeType
}
interface ScannedFace extends ScannedData {
face: Rect
}
type ScannedResult = ScannedText | ScannedBarcode | ScannedFaceDynamicRangesrc/index.tsexport type { Foo } from './Foo'export { Foo } from './Foo'formatvalueTypeidboundsmapflatMapreduceSet(...)getCurrentSystemTimestampMs()timestamp()is*has*can*supports*isFlashEnabledisFlashAvailablehasFlashsupportsFlashenable*allow*enableFlashallowCellularAccesspreferHighAccuracyuse*use*is*EnabledenableGuidance?: booleanisGuidanceEnabled: booleanreadonly isAccelerometerAvailable: booleanaccelerometerAvailable()timeoutMsbyteSizemaxRetriescreatedAtCameraPermissionStatusScannedResultSourcePointRectDataScannerreadonlysetZoomFactor(zoomFactor): Promise<void>manual-inputmanualInputPromisePromiseasyncawaitconvertX()convertXAsync()PromisesetTimeoutaddOnValueChangedListener(listener): ListenerSubscriptiononValueChanged?: (...) => voidaddListener(...): numberremoveListener(listenerId: number)removeaddOn...Listener(callback): ListenerSubscriptionsetOn...setOn...(callback | undefined)undefinedCallbackListeneradd...set...useEffectuseSyncExternalStoreError{ code, message }{@linkcode ...}@seetsc{@linkcode ...}@seeRepresents the format of a {@linkcode Barcode}.@see {@linkcode Barcode.format}Represents a value scanned by {@linkcode DataScanner}. Concrete values include {@linkcode ScannedTextValue} and {@linkcode ScannedBarcodeValue}.{@linkcode ...}@see@default@throws@platform@example@see@discussion{@linkcode ...}