Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation: Tried to register two views with the same name RNGestureHandlerButton #86

Open
luvvvdev opened this issue Aug 16, 2022 · 4 comments

Comments

@luvvvdev
Copy link

luvvvdev commented Aug 16, 2022

Invariant Violation: Tried to register two views with the same name RNGestureHandlerButton, js engine: hermes

Using react-native-animated-charts

import React from "react";
import Box from "@src/view/components/controls/Box";
import {ChartDot, ChartPath, ChartPathProvider, monotoneCubicInterpolation} from '@rainbow-me/animated-charts'
import {Dimensions} from "react-native";

export const {width: SIZE} = Dimensions.get('window');

export const data = [
    {x: 1453075200, y: 1.47}, {x: 1453161600, y: 1.37},
    {x: 1453248000, y: 1.53}, {x: 1453334400, y: 1.54},
    {x: 1453420800, y: 1.52}, {x: 1453507200, y: 2.03},
    {x: 1453593600, y: 2.10}, {x: 1453680000, y: 2.50},
    {x: 1453766400, y: 2.30}, {x: 1453852800, y: 2.42},
    {x: 1453939200, y: 2.55}, {x: 1454025600, y: 2.41},
    {x: 1454112000, y: 2.43}, {x: 1454198400, y: 2.20},
];

const points = monotoneCubicInterpolation({data, range: 40});

const StatsPage = () => {
    
    return (
        <Box>
        </Box>
    )
}

export default StatsPage
@kierangillen
Copy link

Add a resolution to your package.json should fix the issue:

  "resolutions": {
    "react-native-gesture-handler": "2.6.2",
  },

@Youssef-Durgham
Copy link

"resolutions": {
"react-native-gesture-handler": "2.6.2",
},
I tried this and add it but not work the same error.

@MouhamedMokkhtar
Copy link

same error any one find solutions ?

@Tieu-Mai-Nhi
Copy link

the same error :((

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

No branches or pull requests

5 participants