React Native 'expo-asset requires expo-file-system package to be installed and linked' ERROR - react-native

I run my react native on android simulator and I got this error:
expo-asset requires expo-file-system package to be installed and linked
On iPhone its works fine and there is not error.
Thanks

According to this post
https://github.com/expo/expo/issues/3027
you should run the following command:
npm install react-native#0.55.2

Related

When installing React Native Testing Library on an Expo project (uses React 18) I get an error

I have an Expo App (the last expo which uses React 18) that I want to run some testing on
But when trying to install React Native Testing Library, I get this error:
I wonder if this error means that it is incompatible with React 18
What do you suggest me to do?
Thanks in advance
Rafael
I solved the problem by using:
npm install --save-dev #testing-library/react-native --legacy-peer-deps

react native expo run web is showing some permission issue

I am trying to run react native project using expo package on web browser.
but I am getting error message.
Commands executed
yarn install - installed all packages.
expo start - executed very well no issue
npm install react-native-web - no issue
npm install react-dom packages - no issue
expo start - no issue
pressed w - no issue
Browser opened up but in console it says something like.
The issue
Uncaught Error: react-native-permissions: NativeModule.RNPermissions is null. To fix this issue try these steps:
installed npm packages

Error: Requiring module "node_modules\expo-media-library\build\MediaLibrary.js",

I made a react native project using react-native init newProject .I wanted to use expo modules in the project in this module so I ran npx install-expo-modules to use expo modules after using this command I installed expo module expo-media-library and when I import this
Error: Requiring module "node_modules\expo-media-library\build\MediaLibrary.js", which threw an exception:
TypeError: undefined is not an object (evaluating '_ExponentMediaLibrary.default.MediaType')
go with npm install expo-media-library or yarn add expo-media-library
try expo upgrade then expo doctor. mine also stucked there for a while. it even causes AppRegistry error that said main is not registered. should've tried with older versions

Trying to import realm, but getting error: Missing Realm constructor. Did you run "pod install"? (I'm using windows)

I'm making a mobile application with react native.
I want to use Realm (mongodb).
So after running:
npm install realm
realm was correctly added in the "node_modules" and I tried to import realm with:
import Realm from "realm";
If I do npm start and test the app, I get to following error message:
Error: Missing Realm constructor. Did you run "pod install"? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor for troubleshooting
I'm using windows and testing the app on an android device. Earlier questions about this matter on the internet suggested it is in my situation not needed to do "pod install".
I also tried to autolink realm, with:
react-native link realm
But then I get the warning:
warn Calling react-native link [packageName] is deprecated in favor of
autolinking. It will be removed in the next major release. Autolinking
documentation:
https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
(node:26016) Warning: Accessing non-existent property 'padLevels' of
module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created)
Does that mean that the autolinking is not successful, because autolinking will be removed in the next release?
Does any of you have suggestions on how I can successfully import Realm in my react native project?
Here are some of the dependency versions:
"expo": "^44.0.0",
"realm": "^10.14.0"
"react-native": "0.64.3",
Add this package:
npm install realm#hermes
Works for me.
run this command:
expo run:android
you must build your project first
and remember realm is working only on production environment
As the error message suggests, you need to install the pod files for realm to work with iOS. Those are the steps:
In your project folder run npm install realm. It adds the npm package to your react native project
In your iOS folder (cd ios) run pod install. It gets all iOS realm libraries and compiles the iOS-part of your npm package and creates the .xcworkspace.
Add the import to your component: import Realm from "realm";
Switch back to your project folder and run your project: react-native run-ios
Hope that solves your problem!

The development server returned response error code: 500 (React Native)

After installing the following libraries:
#react-navigation/native
#react-navigation/bottom-tabs
I started receiving the error: The development server returned response error code: 500 (React Native). I tried a lot but could not figure out what is the reason.
Can somebody help to figure it out?
Delete babel-preset-react-native folder inside node_modules and then install older version 2.1.0 of this library with npm install babel-preset-react-native#2.1.0 --save-dev