Migrate jsi wrapper + pass markerId to get next instance key

Summary:
Migrating jsi wrapper userflow v2. Also pass markerId to the method that gets instance key

Changelog: [internal]

Differential Revision: D25184462

fbshipit-source-id: c316720b0b3d47b345156bb71d51d6f4c473ceef
This commit is contained in:
Shelly Willard
2020-11-27 11:15:00 -08:00
committed by Facebook GitHub Bot
parent 9528ef27b9
commit bb1dcc182e
+1 -1
View File
@@ -53,7 +53,7 @@ const UserFlow = {
var resolvedInstanceKey = instanceKey;
if (instanceKey === AUTO_INSTANCE_KEY) {
if (global.nativeUserFlowNextInstanceKey) {
resolvedInstanceKey = global.nativeUserFlowNextInstanceKey();
resolvedInstanceKey = global.nativeUserFlowNextInstanceKey(markerId);
} else {
// There is no JSI methods installed, API won't do anything
resolvedInstanceKey = 0;