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

Invalid value for prop dispatch on <div> tag #669

Closed
1 of 2 tasks
rfretes opened this issue Oct 9, 2019 · 2 comments
Closed
1 of 2 tasks

Invalid value for prop dispatch on <div> tag #669

rfretes opened this issue Oct 9, 2019 · 2 comments
Assignees
Labels
🐛 Bug 🌐 Web react-native-web specific 📱 Components components module-specific

Comments

@rfretes
Copy link

rfretes commented Oct 9, 2019

Issue type

I'm submitting a ...

  • 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"
@artyorsh
Copy link
Collaborator

artyorsh commented Oct 9, 2019

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 :)

@artyorsh artyorsh closed this as completed Oct 9, 2019
@artyorsh artyorsh added 🐛 Bug 📱 Components components module-specific 🌐 Web react-native-web specific labels Oct 9, 2019
@artyorsh artyorsh self-assigned this Oct 9, 2019
@lesmo
Copy link

lesmo commented Dec 10, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug 🌐 Web react-native-web specific 📱 Components components module-specific
Projects
None yet
Development

No branches or pull requests

3 participants