react-native-keyboard-accessory icon indicating copy to clipboard operation
react-native-keyboard-accessory copied to clipboard

KeyboardAccessoryNavigation children type error

Open guhyeon opened this issue 5 years ago • 1 comments

KeyboardAccessoryNavigation does not need children. but it emit error message.

      <KeyboardAccessoryNavigation
        androidAdjustResize
      />

No overload matches this call. Overload 1 of 2, '(props: KeyboardAccessoryNavigationProps, context?: any): ReactElement<any, any> | Component<KeyboardAccessoryNavigationProps, any, any> | null', gave the following error. Property 'children' is missing in type '{ androidAdjustResize: true; nextDisabled: boolean; previousDisabled: boolean; nextHidden: boolean; previousHidden: boolean; onNext: () => void; onPrevious: () => void; }' but required in type 'KeyboardAccessoryNavigationProps'. Overload 2 of 2, '(props: PropsWithChildren<KeyboardAccessoryNavigationProps>, context?: any): ReactElement<any, any> | Component<...> | null', gave the following error. Property 'children' is missing in type '{ androidAdjustResize: true; nextDisabled: boolean; previousDisabled: boolean; nextHidden: boolean; previousHidden: boolean; onNext: () => void; onPrevious: () => void; }' but required in type 'KeyboardAccessoryNavigationProps'.ts(2769) index.d.ts(23, 3): 'children' is declared here. index.d.ts(23, 3): 'children' is declared here.

guhyeon avatar Dec 08 '20 14:12 guhyeon

There is a PR pending to fix this issue https://github.com/ardaogulcan/react-native-keyboard-accessory/pull/57

ifero avatar Jan 13 '21 16:01 ifero