Closed sindarovcoder closed 5 months ago
Thanks in advance for the reply
Try to wrap your Shadow component and content with React.memo/useMemo.
Maybe the transition is causing a re-render of the shadow for every animation frame, which is costly.
By using the memo, the component won't be calculated again if the dependencies don't change.
My code: ` <View style={{ justifyContent: "space-between", flexDirection: "row", gap: 6 }}> {lngs.map((item) => (
work without react-native-shadow-2: Screencast from 2024-04-24 12-32-56.webm
Working with react-native-shadow-2: Screencast from 2024-04-24 12-32-06.webm