diff --git a/docs/nativemodulesios.html b/docs/nativemodulesios.html index e7a17e7358c..8a5ae1b568a 100644 --- a/docs/nativemodulesios.html +++ b/docs/nativemodulesios.html @@ -25,7 +25,7 @@ CalendarManager.: '4 Privet Drive, Surrey', time: date.toTime(), description: '...' -})
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
NSArraywithNSNumberandNSString. It's developer's responsibility to check array/map values types (seeRCTConvertfor helper methods).
WARNING
This section is even more experimental than others, we don't have a set of best practices around callbacks yet.
Native module also supports a special kind of argument - callback. In most cases it is used to provide function call result to JavaScript.
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
NSArraywithNSNumberandNSString. It's the developer's responsibility to check array/map values types (seeRCTConvertfor helper methods).
WARNING
This section is even more experimental than others, we don't have a set of best practices around callbacks yet.
Native module also supports a special kind of argument - callback. In most cases it is used to provide function call result to JavaScript.
Enable iOS simulator's "Connect hardware keyboard" from menu Hardware > Keyboard menu.

If you are using a non-QWERTY/AZERTY keyboard layout you can use the Hardware > Shake Gesture to bring up the dev menu and click "Refresh"

Something is probably already running on port 8081. You can either kill it or try to change which port the packager is listening to.
$ sudo lsof -n -i4TCP:8081 | grep LISTEN
then
$ kill -9 <cma process id>
Edit AppDelegate.m to use a different port.