From 7e4fa95b481133f3ebca72c8321703f4dcf50b4a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 10 Nov 2023 15:58:41 +0000 Subject: [PATCH] memo --- src/App.native.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/App.native.tsx b/src/App.native.tsx index 1291c3140a..696ced9611 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -1,6 +1,5 @@ import * as React from 'react' import {View} from 'react-native' -import {observer} from 'mobx-react-lite' import Animated, {useAnimatedScrollHandler} from 'react-native-reanimated' export default function App() { @@ -19,7 +18,7 @@ export default function App() { return } -const Child = observer(function ({onScroll}) { +const Child = React.memo(function ({onScroll}) { return (