-
Notifications
You must be signed in to change notification settings - Fork 11
error: method does not override or implement a method from a supertype #3
Comments
@romandubrov try to set in
instead of 0.1.0 to check that everything works |
@isnifer tried that. it helped with build, but when I've tried to run example code, I've got the following instead: undefined is not an object (evaluating '_react2.PropTypes.string') I've looked into that file and noticed that PropTypes are imported from 'react', but in recent react they are moved to separate package named 'prop-types'. So I've installed prop-types and changed imports to be the following:
and got this: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of This error is located at: the reason was wrong import specification in example code: after all this changes I've finally got a blank screen. Tried to surround Dashline with some Texts - I see the text, but there is no dash line. after that I've added But when I've added a few dash lines in a row, I've noticed that they are slightly different in respect to height: the code is:
I'm using Android 6.0 on XHDPI Phone emulator |
I'm getting this error when compiling Android build:
...\node_modules\tipsi-dash-line\android\src\main\java\com\tipsi\dashline\DashLineComponentReactPackage.java:22: error: method does not override or implement a method from a supertype
@OverRide
^
1 error
:tipsi-dash-line:compileReleaseJavaWithJavac FAILED
My RN version is:
"react-native": "^0.50.3",
The text was updated successfully, but these errors were encountered: