Error when build App: React-native-reanimated:ConfigureCMakeDebug[arm64-v8a]
enter image description here
Related
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
I am trying to use the View Pager on React Native and I am using the reference link for help
https://reactnativecode.com/create-viewpager-with-tab-title-dot-indicators/?unapproved=42387&moderation-hash=570c68d8ea5535b832994536ba239b28#comment-42387
When I use the code as it is and run, it gives an error -
ViewPagerAndroid has been removed from React Native. It can now be installed and imported from 'react-native-viewpager' instead of 'react-native'.
What is that I am missing ?
yarn add #react-native-community/viewpager
Or
npm -i #react-native-community/viewpager --save
For linking use these command
react-native link #react-native-community/viewpager
In Newer versions of React Native ViewPager is not available, so you have to add it manually
then, you can import it like these
import ViewPager from '#react-native-community/viewpager';
You have to notice:
if your react native version < 0.63 - you need install react-native-tab-view 2.x.x version (the latest in this version is 2.16.0)
if >= 0.63 so install 3.x.x
Maybe this is the reason
[Invariant Violation: WebView has been removed from react-native.][1]
[1]: https://i.stack.imgur.com/ce7T9.png, https://snack.expo.io/#aboutreact/generation-of-qr-code-in-react-native?session_id=snack-session-ESXWizmjL
WebView have been removed from React Native Core. You should install the package to use it.
npm install --save react-native-webview
For IOS, need to do
cd ios && pod install
Use like
import { WebView } from 'react-native-webview';
More details at
Package
and
Getting Started Guide
I cannot seem to get react-native-camera working in Expo. Here is a screenshot of the error I am receiving:
The error originates on line 62 of react-native-camera index.js which is calling NativeModules.CameraManager. Does this have something to do with expo not having access to some native APIs?
Steps already taken:
react-native link react-native-camera
watchman watch-del-all
rm -rf node_modules && npm install
rm -fr $TMPDIR/react-*
npm start -- --reset-cache
Restarting the build
I also created a regular react native app via react-native init and was able to properly set up react-native-camera without any issues.
I reached out to the Expo team directly and this was the response I received:
custom native modules are not supported in expo unless you eject
see the sdk api reference section of docs to see what native apis we
expose https://docs.expo.io/versions/v16.0.0/index.html
Answer from expo
You have to use the expo camera from:
import { Camera, Permissions } from 'expo';
Take a look at:
https://docs.expo.io/versions/latest/sdk/camera.html
As I understand, you want to use the camera with Expo.
In this case you can use the Expo Camera package with comes with the Expo API
SDK API ReferenceCamera:
https://docs.expo.io/versions/latest/sdk/camera.html
As background info - Expo and native modules: React-Native is able to
use native app code and access native features, but it needs to be
'linked' via the native app code e.g. the POD file. In the case of
Expo, the native app is already written and only executes your React
Native code. With Expo, linking is only possible when you 'eject' or
'detach' from the original code, which does only make sense in some
cases.
I'm having trouble in installing react native vector icon
after installing
I followed with gradle option
just add the lines in android/app/build.gradle like this in the end of the file like following:
and getting this error after react-native run-android
The guide in their repo is outdated. After you do the npm install you need to run react-native link.
See the doc section