-
Notifications
You must be signed in to change notification settings - Fork 95
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
undefined is not an object (evaluating '_useInternal.state') #23
Comments
What version of Reanimated are you using? There should be no error with the latest release, |
I'm using the |
Hi @kacperkwapisz, is the problem still exist? If yes could you provide more details how did you used the Hold Menu with code snippets, provide versions and other details in issue template. |
@enesozturk, I think I might be getting the same problem as @kacperkwapisz on iOS, which is {
"dependencies": {
"react-native-paper": "3.6.0",
"expo-constants": "~10.1.3",
"react-native-hold-menu": "*",
"react-native-reanimated": "~2.1.0",
"expo-blur": "~9.0.3",
"react-native-gesture-handler": "~1.10.2"
}
} This is my App.js: import React from 'react';
import { View } from 'react-native';
import { HoldItem } from 'react-native-hold-menu';
const MenuItems = [
{ text: 'Actions', icon: 'home', isTitle: true, onPress: () => {} },
{ text: 'Action 1', icon: 'edit', onPress: () => {} },
{ text: 'Action 2', icon: 'map-pin', withSeparator: true, onPress: () => {} },
{ text: 'Action 3', icon: 'trash', isDestructive: true, onPress: () => {} },
];
const Example = () => {
return (
<HoldItem
items={[
{ text: 'Actions', isTitle: true, onPress: () => {} },
{ text: 'Reply', onPress: () => {} },
{ text: 'Edit', onPress: () => {} },
{ text: 'Delete', onPress: () => {} },
]}
/>
);
};
export default Example; This is an Expo snack as a demo: https://snack.expo.io/@filiptronicek/react-native-hold-menu-bug |
When I ran this locally with Expo, this error I got seems to be the exact same as @kacperkwapisz!
Stack trace
|
Hi @filiptronicek, thanks for providing all the details. I will check these as soon as possible. 👍🏽 |
any updates? |
Hi guys, it's been a long time. I tried to reproduce the issue in both bare workflow and managed workflow by Expo but could not handle it. Anyone still having the issue? |
@enesozturk I still am, just checked with my iPhone XS running iOS 15.3 (tried the provided Expo Snack with the Expo Go app) |
Did you use the import React from 'react';
import { HoldMenuProvider } from 'react-native-hold-menu';
const App = () => {
return (
<HoldMenuProvider theme="light">
{/* Your app components */}
</HoldMenuProvider>
);
};
export default App; |
Same error here |
I forgot to use
now it works |
That's the only error showing up which won't allow me to use the react-native-hold-menu.
Do you know how to fix this?
undefined is not an object (evaluating '_useInternal.state')
The text was updated successfully, but these errors were encountered: