kingstinct / react-native-device-activity

Provides access to Apples DeviceActivity API
MIT License
14 stars 2 forks source link

Cannot find native module 'ReactNativeDeviceActivity, not able to run on a bare react native project #17

Open Ayush-a3h opened 7 months ago

Ayush-a3h commented 7 months ago

i keep running into this error,even after following the steps you have outlined in the readme @robertherber

Steps to reproduce:

npx create-expo-app --template bare-minimum

npx install-expo-modules@latest

npm install react-native-device-activity and npx pod-install 

modify app.js to import lib " import * as ReactNativeDeviceActivity from "react-native-device-activity";"

npm run ios

Warp_2024-01-30 20-27-26@2x Simulator_2024-01-30 20-58-27@2x


expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.2.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
Watchman: 2023.12.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
Android SDK:
API Levels: 28, 31, 32, 33, 34
Build Tools: 30.0.3, 32.0.0, 33.0.0, 34.0.0
System Images: android-33 | Google Play ARM 64 v8a, android-34 | Google APIs ARM 64 v8a, android-34 | Google Play ARM 64 v8a
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
expo: ^50.0.0 => 50.0.4
react: 18.2.0 => 18.2.0
react-native: 0.73.2 => 0.73.2
npmGlobalPackages:
expo-cli: 6.3.10
Expo Workflow: bare
kamil6311 commented 4 months ago

same

atanu-crescentek commented 1 month ago

Same error have you found any solution on this?