docs: Add Java types
This commit is contained in:
parent
a02f378a4b
commit
af805bd331
@ -32,15 +32,15 @@ To achieve **maximum performance**, the `scanQRCodes` function is written in a n
|
|||||||
|
|
||||||
Frame Processors can return any primitive value that is representable in JS. So for Objective-C that maps to:
|
Frame Processors can return any primitive value that is representable in JS. So for Objective-C that maps to:
|
||||||
|
|
||||||
| Objective-C Type | JS Type |
|
| JS Type | Objective-C Type | Java Type |
|
||||||
|--------------------------|----------------------|
|
|----------------------|--------------------------|----------------------------|
|
||||||
| `NSNumber` | `number` |
|
| `number` | `NSNumber` | `double` |
|
||||||
| `NSNumber` (boolean) | `boolean` |
|
| `boolean` | `NSNumber` (boolean) | `boolean` |
|
||||||
| `NSString` | `string` |
|
| `string` | `NSString` | `String` |
|
||||||
| `NSArray` | `[]` |
|
| `[]` | `NSArray` | `Array<Object>` |
|
||||||
| `NSDictionary` | `{}` |
|
| `{}` | `NSDictionary` | `HashMap<Object>` |
|
||||||
| `nil` / `NSNull` | `undefined` |
|
| `undefined` | `nil` / `NSNull` | `null` |
|
||||||
| `RCTResponseSenderBlock` | `(any, any) => void` |
|
| `(any, any) => void` | `RCTResponseSenderBlock` | `(Object, Object) -> void` |
|
||||||
|
|
||||||
The values will automatically be converted to JS values, so the following Objective-C frame processor:
|
The values will automatically be converted to JS values, so the following Objective-C frame processor:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user