Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

312
Visualizações
PanGestureHandler Se esperaba que el oyente `onGestureHandlerEvent` fuera una función

El uso de PanGestureHandler desde react-native-gesture-handler con react-native-reanimated con useAnimatedGestureHandler este error.

Se esperaba que el oyente onGestureHandlerEvent fuera una función, en su lugar obtuvo un valor de tipo de object

Estos son los componentes que se renderizan,

 <View style={[styles.center]}> <Text style={{color: "#555", fontSize:16, marginTop: 120, marginBottom: 70, width: 250, margin: 'auto'}}>Works on the web but throws an error on iOS.</Text> <Animated.View style={[styles.box, styles.center, animatedStyle]}> <PanGestureHandler onGestureEvent={gestureHandler}> <Text style={{color: "#444", fontWeight:'bold', padding: 16,}}>Drag me around</Text> </PanGestureHandler> </Animated.View> </View>;

Merienda aquí, https://snack.expo.dev/4Mp-PfXPU

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Este comentario en GitHub apunta en la dirección correcta.

Aunque no se especifica en los documentos, se puede deducir de los ejemplos... PanGestureHandler requiere <Animated.View ...> child inside <PanGestureHandler ...> .

Entonces <Animated.View ...>...</Animated.View> debe estar dentro de <PanGestureHandler onGestureEvent={gestureHandler}> .

 <PanGestureHandler onGestureEvent={gestureHandler}> <Animated.View style={[styles.box, styles.center, animatedStyle]}> <Text style={{color: "#444", fontWeight:'bold', padding: 16,}}>Drag me around</Text> </Animated.View> </PanGestureHandler>

Aquí hay un bocadillo de trabajo,

https://snack.expo.dev/ZRr6t24Hv

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda