-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incompatibility with react-native 0.65.0 #2290
Comments
Issue validatorThe issue is valid! |
Hi, try upgrading your Reanimated to 2.3.0, mine just works right now. I have the same issue earlier and spent probably 4hours probing whats the problem. I don't know if this is the fix but I'm new to React-native so that's that only thing I know of, here's my package.json
|
@JerichoGragasin That doesn't solve the problem |
|
@JerichoGragasin |
Obviously, the library has not been adapted. |
@MonsterAnan |
Hi, how do you make it work? I tried downgrading to 0.64 and 2.2.0 but it was throwing about com.facebook...proguard.? Should I install RN 0.64 globally instead of inside the project folder? |
@JerichoGragasin |
Oh, thanks. I'd have to reinstall stuff really from the repo I guess. Well,
let's hope for the best and 2.3.0 would be stable already.
…On Wed, Aug 18, 2021, 6:17 PM alexco2 ***@***.***> wrote:
@JerichoGragasin <https://github.com/JerichoGragasin>
Have you followed these steps? Expecially the one regarding Proguard.
https://docs.swmansion.com/react-native-reanimated/docs/2.2.0/installation#proguard
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2290 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPFV4QT2PW4Q3HRWWYN37LT5OCDTANCNFSM5CKUHNAA>
.
|
+1 |
2 similar comments
+1 |
+1 |
@JerichoGragasin I can confirm, after updating reanimated to 2.3.0-alpha.2 my android build is successful now while using react-native 0.65.0, thanks |
@nald-dev Good to hear, brother . I guess this is really what internet means. it's intertwined that if one breaks, Everything breaks especially in terms of dependencies. |
not really and it says that a variable named "shouldUseWeb' not found, i don't remember myself created that in my project also the error still even i remove reanimated from package.json |
I created an issue in the react-native-firebase repository about the |
2.3.0-alpha.2 solved the issue for me |
same here, solved the issue by installing [email protected] |
Hey everyone! I bet that the following
Instead I can provide additional logs from my device which do signalise about the fatal behaviour on Android:
|
Oh, there is an issue about this crash already: #2256 |
With Hermes disabled the log transforms into:
I guess here is the clue:
|
I can run in my old version device, But crash happened in my new device. WARN |
Finally I have the same error just this moment lol. It's really broken LOL. |
About the "new NativeEventEmitter()..." warning: #2297 |
In this issue, I can see more than one case, so quick update
|
@khunghang16 in your case. Functions from Reanimated v2 don't exist in the import Animated, { useSharedValue, withTiming, runOnJS } from "react-native-reanimated"; Your code with fix: codeimport React from "react";
import { StyleSheet } from "react-native";
// import { useAppSelector } from "reduxs/reducer";
import Animated, { useSharedValue, withTiming, runOnJS } from "react-native-reanimated";
const UpdateView = React.memo(() => {
// const { show, progress } = useAppSelector((state) => state.updateCodepush);
const show = true;
const [showView, setShowView] = React.useState(false);
const opacity = useSharedValue(0);
const dismiss = React.useCallback(() => {
setShowView(false);
}, []);
React.useEffect(() => {
if (show) {
setShowView(true);
opacity.value = withTiming(1, { duration: 500 });
} else {
opacity.value = withTiming(
0,
{ duration: 500 },
(isFinished) => {
if (isFinished) {
runOnJS(dismiss)();
}
}
);
}
}, [show]);
if (!showView) return null;
return (
<Animated.View
style={{ ...StyleSheet.absoluteFillObject, opacity: opacity.value }}
>
</Animated.View>
);
});
export default UpdateView;
const styles = StyleSheet.create({}); |
Also, what about publishing the patch as |
please |
This work for me, thank you! |
WARN |
This is for both Android and IOS. |
Hi I have meet this issue too. My fix is add import { nativeShouldBeMock, shouldBeUseWeb } from './PlatformChecker' in src/reanimated2/core.ts |
Fixed after installation by this page https://docs.swmansion.com/react-native-reanimated/docs/installation/. |
I am having the same error while updating RN to 0.65.1 for rnn-starter that uses wix/react-native-navigation and other libs, including Reanimated.
In my case, It happens when I try to change My current progress is here. And for the annoying warnings, you can use the following (it will be fixed soon, I guess)
|
@sertony @Rubon72 Yes, we decided to release also 2.2.1 with support for [email protected]. We want to do it this week. |
Fixed with: #2316 |
@piaskowyk Thank you very much |
@piaskowyk Thank you very much. And when can we use 2.2.1 ? ~~~ |
@booyeu We want to release 2.2.1 and 2.3.0-alpha.3 this week |
Hey, any news about it? Can't wait to start integration and it's Friday already ;) |
Description
After upgrading to react-native version 0.65.0 with reanimated 2.2.0 I got the following error:
I tried react-native 0.65.0 with reanimated version 2.3.0-alpha.2 and then got a new error on startup, which is the following:
I hope this helps somehow. I will downgrade to react-native 0.64.2 again, since there seems to be compatibility issues with reanimated and hermes.
Expected behavior
For react-native-reanimated 2.2.0 I expect react-native 0.65.0 to compile. For 2.3.0-alpha.2 I expect the app not to crash.
Actual behavior & steps to reproduce
I upgraded to 0.65.0. Perhaps it has something to do with the following error:
#2246
Snack or minimal code example
Package versions
Affected platforms
I was just able to test with android.
The text was updated successfully, but these errors were encountered: