From a22eec68936c0ff3899c56fb37f4851dddfd99c0 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Thu, 3 Aug 2017 20:45:40 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/native-modules-ios.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/releases/next/docs/native-modules-ios.html b/releases/next/docs/native-modules-ios.html index 973cc785904..d345932dbc0 100644 --- a/releases/next/docs/native-modules-ios.html +++ b/releases/next/docs/native-modules-ios.html @@ -183,6 +183,10 @@ RCTRootView *rootView // Date is ready to use! } + override func constantsToExport() -> [String: Any]! { + return ["someKey": "someValue"] + } + }

NOTE: It is important to use the @objc modifiers to ensure the class and functions are exported properly to the Objective-C runtime.

Then create a private implementation file that will register the required information with the React Native bridge:

// CalendarManagerBridge.m #import <React/RCTBridgeModule.h>