Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyboardAccessoryNavigation children type error #61

Open
guhyeon opened this issue Dec 8, 2020 · 1 comment
Open

KeyboardAccessoryNavigation children type error #61

guhyeon opened this issue Dec 8, 2020 · 1 comment

Comments

@guhyeon
Copy link

guhyeon commented Dec 8, 2020

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, 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.

@ifero
Copy link
Contributor

ifero commented Jan 13, 2021

There is a PR pending to fix this issue #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants