From 4378f40f0dee57a55f44bc2c8d9ed1c436caa3ac Mon Sep 17 00:00:00 2001 From: Raphael Rouvinov-Kats Date: Wed, 8 Apr 2020 16:57:16 -0400 Subject: [PATCH] [NativeModules iOS] Remind people to rebuild Was running into issues with this line, turned out I was forgetting to rebuild my project! I'm sure there's better ways to word this, too. In general I think it would be nice to mention rebuilding somewhere near the top. --- docs/native-modules-ios.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/native-modules-ios.md b/docs/native-modules-ios.md index 6dba5d99138..27f05d66368 100644 --- a/docs/native-modules-ios.md +++ b/docs/native-modules-ios.md @@ -62,7 +62,7 @@ RCT_EXPORT_METHOD(addEvent:(NSString *)name location:(NSString *)location) @end ``` -Now, from your JavaScript file you can call the method like this: +Now, from your JavaScript file you can call the method like this (after making sure to rebuild): ```jsx import {NativeModules} from 'react-native';