mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Passing JS callback as a parameter in registerSegment
Summary: Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D24000338 fbshipit-source-id: 65d901f6d2bf51a150bce6871517d0a30ab9f821
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8f5f3d159b
commit
edbe154a30
@@ -470,7 +470,8 @@ public class ReactContext extends ContextWrapper {
|
||||
* @param segmentId
|
||||
* @param path
|
||||
*/
|
||||
public void registerSegment(int segmentId, String path) {
|
||||
public void registerSegment(int segmentId, String path, Callback callback) {
|
||||
Assertions.assertNotNull(mCatalystInstance).registerSegment(segmentId, path);
|
||||
Assertions.assertNotNull(callback).invoke();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user