Skip to content

Conversation

@markstreich
Copy link

"react-native-reanimated": "^3.2.0",
"release-it": "^14.2.2",
"typescript": "^4.1.3"
"typescript": "^4.9.5"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main was failing for yarn typescript with the old version

'worklet';
if (!isActive.value) return;
if (numberOfPointers !== 1) return;
if (numberOfPointers > 1) return;
Copy link
Author

@markstreich markstreich Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On web (with mouse), numberOfPointers is 0 (if I understand correctly, this was preventing two finger touches from triggering double clicks, so > 1 should have the same effect)

const { height: h, width: w } = e.nativeEvent.source;
setImageDimensions({ height: h, width: w });
onLoad={() => {
Image.getSize(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nativeEvent.source doesn't work on web.

setImageDimensions,
}: RenderItemInfo<{ uri: string }>) => {
return (
<Image
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expo-image (at least this version) gives a bunch of errors on web, also the error in the main library was from defaultRenderImage, so switched to using that in the example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web compatibility

1 participant