66 ScaledSize ,
77 View ,
88} from 'react-native' ;
9- import { Measurement , MeasurementValue , ReactScanInternals } from '../..' ;
9+ import { Measurement , MeasurementValue , ReactScanInternals } from '../../index ' ;
1010
1111import {
1212 Canvas ,
@@ -22,8 +22,8 @@ import React, {
2222 useSyncExternalStore ,
2323} from 'react' ;
2424import { Dimensions , Platform } from 'react-native' ;
25- import { useDerivedValue , useSharedValue } from 'react-native-reanimated' ;
26- import { assertNative , instrumentNative } from '.' ;
25+ // import { useDerivedValue, useSharedValue } from 'react-native-reanimated';
26+ import { assertNative , instrumentNative } from './instrument ' ;
2727
2828// can't use useSyncExternalStore for compat
2929const useIsPaused = ( ) => {
@@ -157,7 +157,7 @@ const getTextWidth = (text: string) => {
157157 return ( text || 'unknown' ) . length * 7 ;
158158} ;
159159const ReactNativeScan = ( { id : _ } : { id : string } ) => {
160- const opacity = useSharedValue ( 1 ) ;
160+ // const opacity = useSharedValue(1);
161161 // todo: polly fill
162162 const outlines = useSyncExternalStore (
163163 ( listener ) =>
@@ -172,7 +172,7 @@ const ReactNativeScan = ({ id: _ }: { id: string }) => {
172172 ( ) => ReactScanInternals . activeOutlines ,
173173 ) ;
174174 // );
175- const animatedOpacity = useDerivedValue ( ( ) => opacity . value ) ;
175+ // const animatedOpacity = useDerivedValue(() => opacity.value);
176176
177177 return (
178178 < Canvas
@@ -186,7 +186,7 @@ const ReactNativeScan = ({ id: _ }: { id: string }) => {
186186 pointerEvents : 'none' ,
187187 } }
188188 >
189- < Group opacity = { animatedOpacity } >
189+ < Group >
190190 { outlines
191191 . filter ( ( { outline } ) => {
192192 const measurement = assertNative ( outline . latestMeasurement ) . value ;
0 commit comments