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

Error: Unable to resolve module @unimodules/core #9

Closed
productdevbook opened this issue Mar 9, 2021 · 8 comments
Closed

Error: Unable to resolve module @unimodules/core #9

productdevbook opened this issue Mar 9, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@productdevbook
Copy link

Describe the bug

> 1 | import { NativeModulesProxy, requireNativeViewManager } from '@unimodules/core';
    |                                                               ^
  2 | import * as React from 'react';
  3 | import { findNodeHandle, View, StyleSheet } from 'react-native';
  4 | export default class BlurView extends React.Component {]

Steps to reproduce the behavior:

  1. yarn add react-native-hold-menu
  2. import { HoldItem } from 'react-native-hold-menu';
  3. used ```...
  4. yarn start
  5. See error

Screenshots
Screen Shot 2021-03-09 at 17 24 03

Package versions

  • React: 17.0.1
  • React Native: 0.64.0-rc.4
  • React Native Reanimated: 2.0.0
@productdevbook productdevbook added the bug Something isn't working label Mar 9, 2021
@enesozturk
Copy link
Owner

Hi @productfrontenddeveloper, Hold menu is using Expo modules for Blur view (expo-blur) and will use expo-haptic soon. That is why react-native-unimodules instructions must be done and this is missing in documentation. Thanks for feedback. Following this steps must solve the issue.

@productdevbook
Copy link
Author

Thanks for the return, Can you give a date for the expo-haptic ?

@enesozturk
Copy link
Owner

It is merged already (#5) and I will create new release in several days. Let me know unimodules installation solves your issue.

@productdevbook
Copy link
Author

Actually I don't want to install and deal with the settings, but I'll try it for you. (unimodules). soon

@enesozturk
Copy link
Owner

That is ok then. Closing issue for now and you can reopen it if the installation won't work for you 👍🏽

@productdevbook
Copy link
Author

productdevbook commented Mar 9, 2021

"react-native-hold-menu": "https://github.com/enesozturk/react-native-hold-menu",
I said let me test my new version, some problem,
Are unimodules mandatory ?

Question: https://reactnative.dev/docs/pressable why dont used. expo-haptic What is the difference between

@enesozturk
Copy link
Owner

enesozturk commented Mar 9, 2021

Yes unimodules is mandatory because backdrop and menu background uses expo-blur.

Expo haptic is not a pressable or touchable component. It is for vibration to let user have a good experience.

@productdevbook
Copy link
Author

productdevbook commented Mar 9, 2021

Hi @productfrontenddeveloper, Hold menu is using Expo modules for Blur view (expo-blur) and will use expo-haptic soon. That is why react-native-unimodules instructions must be done and this is missing in documentation. Thanks for feedback. Following this steps must solve the issue.

Thank you fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants