mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
Fix wording in NativeModulesIOS.md
Made small changes to the wording under **NOTE**: About array and map
This commit is contained in:
parent
72b9fccae2
commit
f3c1f4220f
@ -100,7 +100,8 @@ CalendarManager.addEvent('Birthday Party', {
|
||||
|
||||
> **NOTE**: About array and map
|
||||
>
|
||||
> React Native doesn't provide any guarantees about the types of values in these structures. Your native module might expect array of strings, but if JavaScript calls your method with an array that contains number and string you'll get `NSArray` with `NSNumber` and `NSString`. It's the developer's responsibility to check array/map values types (see [`RCTConvert`](https://github.com/facebook/react-native/blob/master/React/Base/RCTConvert.h) for helper methods).
|
||||
> React Native doesn't provide any guarantees about the types of values in these structures. Your native module might expect an array of strings, but if JavaScript calls your method with an array containing numbers and strings, you'll get `NSArray` with `NSNumber` and `NSString`. It is the developer's responsibility to check array/map value types (see [`RCTConvert`](https://github.com/facebook/react-native/blob/master/React/Base/RCTConvert.h) for helper methods).
|
||||
|
||||
|
||||
# Callbacks
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user