Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ void UIRuntimeDecorator::decorate(
jsi_utils::installJsiFunction(uiRuntime, "_updatePropsFabric", updateProps);
jsi_utils::installJsiFunction(
uiRuntime, "_removeFromPropsRegistry", removeFromPropsRegistry);
// jsi_utils::installJsiFunction(
// uiRuntime, "_dispatchCommandFabric", dispatchCommand);
jsi_utils::installJsiFunction(
uiRuntime, "_dispatchCommandFabric", dispatchCommand);
jsi_utils::installJsiFunction(uiRuntime, "_measureFabric", measure);
#else
jsi_utils::installJsiFunction(uiRuntime, "_updatePropsPaper", updateProps);
// jsi_utils::installJsiFunction(
// uiRuntime, "_dispatchCommandPaper", dispatchCommand);
jsi_utils::installJsiFunction(
uiRuntime, "_dispatchCommandPaper", dispatchCommand);
jsi_utils::installJsiFunction(uiRuntime, "_scrollToPaper", scrollTo);
jsi_utils::installJsiFunction(
uiRuntime,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
// import type { ShadowNodeWrapper } from '../commonTypes';
import type { ShadowNodeWrapper } from '../commonTypes';
import {
isChromeDebugger,
isFabric,
Expand Down Expand Up @@ -36,39 +36,29 @@ export let dispatchCommand: DispatchCommand;
function dispatchCommandFabric(
animatedRef: AnimatedRefOnJS | AnimatedRefOnUI,
commandName: string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
args: Array<unknown> = []
) {
/* 'worklet';
'worklet';
if (!_WORKLET) {
return;
}

const shadowNodeWrapper = animatedRef() as ShadowNodeWrapper;
global._dispatchCommandFabric!(shadowNodeWrapper, commandName, args);
*/
logger.warn(
'dispatchCommand() is disabled: https://github.com/ExodusMovement/exodus-mobile/pull/24699. Contact AppSec if you need this.'
);
}

function dispatchCommandPaper(
animatedRef: AnimatedRefOnJS | AnimatedRefOnUI,
commandName: string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
args: Array<unknown> = []
) {
/* 'worklet';
'worklet';
if (!_WORKLET) {
return;
}

const viewTag = animatedRef() as number;
global._dispatchCommandPaper!(viewTag, commandName, args);
*/
logger.warn(
'dispatchCommand() is disabled: https://github.com/ExodusMovement/exodus-mobile/pull/24699. Contact AppSec if you need this.'
);
}

function dispatchCommandJest() {
Expand Down
Loading