i tried to make animated tabButton that scale onPress, it work really well in development build.
build successful with this command : eas build -p android --profile release --local
but crash on release.
when run adb logcat -s ReactNative:V ReactNativeJS:V give this ErrorMessage:
ReactNativeJS: TypeError: null is not an object (evaluating 'V.current.useRef')
update: tried to run expo start -c --no-dev
12-04 11:33:21.669 18532 19472 W ReactNativeJS: Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
12-04 11:33:21.669 18532 19472 W ReactNativeJS: 1. You might have mismatching versions of React and the renderer (such as React DOM)
12-04 11:33:21.669 18532 19472 W ReactNativeJS: 2. You might be breaking the Rules of Hooks
12-04 11:33:21.669 18532 19472 W ReactNativeJS: 3. You might have more than one copy of React in the same app
12-04 11:33:21.669 18532 19472 W ReactNativeJS: See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
12-04 11:33:21.669 18532 19472 W ReactNativeJS: TabButton@/data/user/0/host.exp.exponent/files/.expo-internal/bundle:133394:27
12-04 11:33:21.669 18532 19472 W ReactNativeJS: BottomTabBarItem@/data/user/0/host.exp.exponent/files/.expo-internal/bundle:168857:23
12-04 11:33:21.669 18532 19472 W ReactNativeJS: RCTView
12-04 11:33:21.669 18532 19472 W ReactNativeJS: View
12-04 11:33:21.669 18532 19472 W ReactNativeJS: RCTView
12-04 11:33:21.669 18532 19472 W ReactNativeJS: View
12-04 11:33:21.669 18532 19472 W ReactNativeJS: AnimatedComponent@/data/user/0/host.exp.exponent/files/.expo-internal/bundle:79888:38
12-04 11:33:21.669 18532 19472 W ReactNativeJS: AnimatedComponentWrapper
12-04 11:33:21.669 18532 19472 W ReactNativeJS: BottomTabBar@/data/user/0/host.exp.exponent/files/.expo-internal/bundle:168586:22
12-04 11:33:21.669 18532 19472 W ReactNativeJS: RCTView
Is there an existing issue for this?
Current Behavior
EAS build app crashes just on build release but works fine when using Expo Go.
https://user-images.githubusercontent.com/16457615/205432891-a90c8ad2-95ab-4a91-9b60-efdbec7f86cb.mp4
i tried to make animated tabButton that scale onPress, it work really well in development build. build successful with this command :
eas build -p android --profile release --local
but crash on release.when run
adb logcat -s ReactNative:V ReactNativeJS:V
give this ErrorMessage:ReactNativeJS: TypeError: null is not an object (evaluating 'V.current.useRef')
update: tried to run
expo start -c --no-dev
here's my eas.json
tried what i could think of:
Expected Behavior
Works fine in release build.
Steps To Reproduce
Versions
package.json
Screenshots
Reproduction
minimal reproduction on snack
somehow, animation is not working correctly on snack 😕 update: try to re-create on react native cli. build release works well.
I hope it helps, thank you.