diff --git a/AppInput.tsx b/AppInput.tsx index b837967..a920385 100644 --- a/AppInput.tsx +++ b/AppInput.tsx @@ -1,10 +1,10 @@ -import {ComponentProps, Ref} from 'react' +import React, {ComponentProps, Ref} from 'react' import {TextInput} from 'react-native-paper' import {CombinedDefaultTheme} from './App' import {MARGIN} from './constants' import useDark from './use-dark' -export default function AppInput( +function AppInput( props: Partial> & { innerRef?: Ref }, @@ -23,3 +23,5 @@ export default function AppInput( /> ) } + +export default React.memo(AppInput)