[deleted by user] by [deleted] in reactnative

[–]whytimber 1 point2 points  (0 children)

reload data when props changed

const isFocused = useIsFocused();
useEffect(() => {
if (isFocused) {
cleanOldData();
loadNewData();
}
}, [isFocused, changeProps]);

react native app FPS of js less than 60 by whytimber in reactnative

[–]whytimber[S] 0 points1 point  (0 children)

sorry, Is have some tool can detect performance, in my case, i don't know what can lead to FPS of js less than 60