Merge pull request #243 from loringdodge/master
Fix wording in NativeModulesIOS.md
This commit is contained in:
commit
6992c3284a
|
@ -100,7 +100,8 @@ CalendarManager.addEvent('Birthday Party', {
|
||||||
|
|
||||||
> **NOTE**: About array and map
|
> **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
|
# Callbacks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue