how can I update the newest react-native-reanimated version with expo? - react-native

how can I update the newest react-native-reanimated version with expo ?
if I write this:
npx expo install react-native-reanimated
then I dont get the latest reanimated version

Run npm install react-native-reanimated for the latest or change package.json yourself and run npm install afterwards. Remember that expo has ben tested against fixed versions of reanimated, so you will get warnings from expo if you upgrade it yourself.

Related

react native how to upgrade project version 0.61.0to latest version

React native 61 to 64 +
current version 0.61.0
upgrade to latest version
best way to upgrade project
npx react-native upgrade cd ios pod install
for upgrade to specific version You may specify a React Native version by passing an argument, e.g. to upgrade to 0.64.0
npx react-native upgrade 0.64.0
It's not simply change the version and npm install again. You may view the official documentation for help.
https://react-native-community.github.io/upgrade-helper/

Cannot Downgrade React-Native version from 0.62 to 0.61.4

Expo 37 mentions it will work with react-native 0.61.4. When I check my react-native version, it states:
$ npm view react-native version
0.62.2
I have tried: 1-) Running npm remove react-native, then clearing package-lock.json, then setting react-native version 0.61.4 in package.json, and running npm install again. Tried only npm install react-native#0.61.4 as well.
When I run the verification the result is the same:
$ npm view react-native version
0.62.2
How can I properly downgrade to react-native 0.61.4?
npm view react-native version shows the version of current stable version is available.
to check local version, just run:
npm outdated, this will show your local outdated version or using list npm list --depth=0 in root directory

New react-native-app with react-native 0.59.9 or lower

What is the best/easiest way to create new react-native-app using react-native-0.59.9 or lower?
Trying to use https://github.com/futurepress/epubjs-rn , which only runs in react-native 0.59 or lower.
The example app in https://github.com/futurepress/epubjs-rn/EpubReader does not work out of the box.
please use epubjs-rn-62
usage
To use the components in your own app install via npm or yarn
npm install --save epubjs-rn
import { Epub } from 'epubjs-rn';
Then you can add the reader element in your code:
<Epub src={"https://s3.amazonaws.com/epubjs/books/moby-dick/OPS/package.opf"}
flow={"paginated"} />
In order to start a new project with a specific React Native version, you can use the --version
react-native init ProjectName --version="0.59.9"
Check official documentation for more information.
EDIT
But in order to run an older version, you need to downgrade your React Native CLI version according to Compatibility of React Native CLI.
If you have already installed a version of react-native CLI, uninstall it using
npm uninstall -g react-native-cli
Then you have to install an older version as below,
npm install react-native-cli#1.0.0
Hope this will help you.

errors after running expo start

I have installed latest node version and expo-cli but when I run the command expo start, it gives me this error:
Starting project at C:\Users\Ogacho\Desktop\sharelocation
Expo DevTools is running at http://localhost:19002
Your project is in SDK version >= 33.0.0, but the expo package version seems to be older.
Opening DevTools in the browser... (press shift-d to disable)
Error: React Native is not installed. Please run `npm install` in your project directory.
Couldn't start project. Please fix the errors and restart the project.
Set EXPO_DEBUG=true in your env to view the stack trace.
I have tried clearing my npm cache, deleting my node_modules folder and reinstalling...
This fixed it for me:
Run expo update 35.0.0. (Replace version with your desired version. 35.0.0 is the latest as of this post.) This updates expo, by updating app.json & package.json and installing the latest dependencies.
Referenced from:
https://docs.expo.io/versions/latest/workflow/upgrading-expo-sdk-walkthrough/
Also, check that:
your expo app is the latest version through the app/play store.
your expo cli is the latest version npm install -g expo-cli
Your project is in SDK version >= 33.0.0, but the expo package version seems to be older. If your expo-cli version is older than 2.21.2, run npm install -g expo-cli to get the latest version.
Or, you can change sdkVersion and dependencies to an older version to match the expo-cli doc.Run expo --version to get the expo-cli version. For example, if using expo-cli 2.19.5, you should
app.json, change sdkVersion to "32.0.0",
In package.json, change these dependencies:
{
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"expo": "^32.0.0",
"react": "16.5.0"
}
Delete your project’s node_modules directory and install again
Close your Expo CLI server
Run expo upgrade in your project directory (requires the latest version of expo-cli, you can update with npm i -g expo-cli).
Make sure to check the breaking changes section of this post!
Run expo start -c

React Native TransformError

I just created a react native app and did an npm install after that. I tried running the app after npm install, and this showed in my emulator. How do i fix this guys?
I had the same problem with "babel-preset-react-native", I removed version 3.0.0 and installed it to 2.1.0.
Remove folder babel-preset-react-native inside node_modules
Change the version of babel-preset-react-native in package.json to 2.1.0
Run npm install