/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ // @ts-ignore import * as NativeComponentRegistry from 'react-native/Libraries/NativeComponent/NativeComponentRegistry'; import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; import type { ViewProps, HostComponent } from 'react-native'; import * as React from 'react'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes'; export interface NativeProps extends ViewProps {} interface NativeCommands { hotspotUpdate: ( viewRef: React.ElementRef>, x: Int32, y: Int32 ) => void; setPressed: ( viewRef: React.ElementRef>, pressed: boolean ) => void; } export const Commands: NativeCommands = codegenNativeCommands({ supportedCommands: ['hotspotUpdate', 'setPressed'], }); export default codegenNativeComponent( 'ShadowView' ) as HostComponent;