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

Typing error #170

Open
Sebosek opened this issue May 26, 2022 · 0 comments
Open

Typing error #170

Sebosek opened this issue May 26, 2022 · 0 comments

Comments

@Sebosek
Copy link

Sebosek commented May 26, 2022

Hi,

not sure why, but when I put Checkbox inside the JSX I'm getting the following error:

"TS2786: 'CheckBox' cannot be used as a JSX component.
  Its instance type 'CheckBox' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("C:/Projects/.../node_modules/@types/react-native-modalbox/node_modules/@types/react/index").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.
          Type '{}' is missing the following properties from type 'ReactPortal': key, children, type, props"

Has anyone seen that error?

export default function App() {
  return (
    <SafeAreaProvider>
      <View>
        <CheckBox value={true} />
      </View>
    </SafeAreaProvider>
  );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants