Skip to content

Conversation

@akwasniewski
Copy link
Contributor

@akwasniewski akwasniewski commented Jan 16, 2026

Description

manualActivation prop was missing in v3, this PR adds it.

Test plan

Details
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { GestureHandlerRootView, GestureDetector, usePanGesture } from 'react-native-gesture-handler';

export default function TwoPressables() {
  const pan = usePanGesture({
    onActivate: (e) => { console.log(e) },
    disableReanimated: true,
    manualActivation: true,
    runOnJS: true,
  });
  return (
    <GestureHandlerRootView>
      <View style={styles.root}>
        <GestureDetector gesture={pan}>
          <View style={styles.outer}>
            <Text style={styles.label}>Pan</Text>
          </View>
        </GestureDetector>

      </View>
    </GestureHandlerRootView>
  );
}

const styles = StyleSheet.create({
  root: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#f7f7f7',
  },
  outer: {
    padding: 20,
    backgroundColor: '#ddd',
    borderRadius: 12,
    marginBottom: 50
  },
  label: {
    fontSize: 18,
    marginBottom: 10,
  },
})

Copy link
Member

@j-piasecki j-piasecki left a comment

Choose a reason for hiding this comment

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

Can you update the PR title so it's not just the prop name?

@akwasniewski akwasniewski changed the title Manual activation add manualActivation prop Jan 19, 2026
@akwasniewski akwasniewski merged commit e62525e into next Jan 19, 2026
2 checks passed
@akwasniewski akwasniewski deleted the @akwasniewski/manualActivation branch January 19, 2026 10:33
@akwasniewski akwasniewski mentioned this pull request Jan 20, 2026
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.

3 participants