Add support placeholder in AdsManager for proper deep linking

Reviewed By: foghina

Differential Revision: D3444315

fbshipit-source-id: 894b7e7899bd59ac87b175cd2767afe5a741487f
This commit is contained in:
Dave Miller 2016-06-16 09:29:14 -07:00 committed by Facebook Github Bot 4
parent 0c4147ac6a
commit 1f8cd9ddbc
1 changed files with 5 additions and 1 deletions

View File

@ -13,12 +13,14 @@ import javax.annotation.Nullable;
import android.net.Uri;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.SupportsWebWorkers;
import com.facebook.react.bridge.UiThreadUtil;
import com.facebook.react.bridge.WritableMap;
/**
* Native module that handles device hardware events like hardware back presses.
@ -58,9 +60,11 @@ public class DeviceEventManagerModule extends ReactContextBaseJavaModule {
* Sends an event to the JS instance that a new intent was received.
*/
public void emitNewIntentReceived(Uri uri) {
WritableMap map = Arguments.createMap();
map.putString("url", uri.toString());
getReactApplicationContext()
.getJSModule(RCTDeviceEventEmitter.class)
.emit("url", uri.toString());
.emit("url", map);
}
/**