React-native-ui-kitten: Invalid value for prop `dispatch` on <div> tag

Created on 9 Oct 2019  路  2Comments  路  Source: akveo/react-native-ui-kitten

Issue type

I'm submitting a ...

  • [x] bug report
  • [ ] feature request

Issue description

Whenever using a Button and a Text component with ReactJS v16..0 even though elements are render and they work as expected an error message is displayed with the text:

Warning: Invalid value for prop dispatch on

tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://fb.me/react-attribute-behavior

Current behavior:
Use a Button element in a render function, when element is render in the browser the error is displayed in the console.

Expected behavior:
Not display error message.

Related code:

import React, { ChangeEvent } from 'react';
import { Button, Text } from 'react-native-ui-kitten';

const Test: React.FC<TestProps> = (props) => {

  return (
        <Button onPress={goNext} >
          Next
        </Button>
  );
};

interface TestProps {
}

export default Test;

Other information:

OS, device, package version

"react": "16.9.0",
"react-native-web": "0.11.7",
"react-native": "0.61.1"
Bug Web Components

Most helpful comment

Shouldn't this be kept open? Web support was announced on July 11th, and while it is experimental these issues allow for keeping track of what needs to be done to get closer to production-grade support.

Just my two cents

All 2 comments

Thanks for the report @rfretes. We're still working on better support of react-native-web and I guess this will be fixed soon 馃槃But currently, please, consider using RNW as a beta feature :)

Shouldn't this be kept open? Web support was announced on July 11th, and while it is experimental these issues allow for keeping track of what needs to be done to get closer to production-grade support.

Just my two cents

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bkwhite picture bkwhite  路  3Comments

domsterthebot picture domsterthebot  路  3Comments

sobiso picture sobiso  路  3Comments

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

sovannvin picture sovannvin  路  3Comments