From 94cd9f55915973355cdb63276b71f90df10281db Mon Sep 17 00:00:00 2001 From: Dennis Sandmark Date: Fri, 1 Dec 2017 15:30:52 -0800 Subject: [PATCH] Update native-modules-android.md Summary: `import com.facebook.react.bridge.Callback;` is needed to be able to use `Callback` as a parameter. Thought it needed to be clearer that you need to import `Callback` as it's not a native Java type. (Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!) Closes https://github.com/facebook/react-native/pull/17015 Differential Revision: D6464454 Pulled By: hramos fbshipit-source-id: dfb57f4176483c4e95539c5db03a86f01892e587 --- docs/native-modules-android.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/native-modules-android.md b/docs/native-modules-android.md index e4365f187c9..79e547c79d2 100644 --- a/docs/native-modules-android.md +++ b/docs/native-modules-android.md @@ -171,6 +171,8 @@ ToastExample.show('Awesome', ToastExample.SHORT); Native modules also support a special kind of argument - a callback. In most cases it is used to provide the function call result to JavaScript. ```java +import com.facebook.react.bridge.Callback; + public class UIManagerModule extends ReactContextBaseJavaModule { ...