-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
has no propType for native prop of native type number
#3685
Comments
you prop has name "src"(PROP_SRC = "src"), but on screenshot you call prop with name "scaleX" |
I never call prop name "scaleX".
|
oh, sorry, my mistake |
Thanks, your suggestion solves the problem. But I find another solution. var theView = {
name: 'GLSurfaceView',
propTypes: {
src: React.PropTypes.number,
},
};
var GLSurfaceView = requireNativeComponent('GLSurfaceView', theView, {nativeOnly: {
'scaleX': true,
'scaleY': true,
'testID': true,
'decomposedMatrix': true,
'backgroundColor': true,
'accessibilityComponentType': true,
'renderToHardwareTextureAndroid': true,
'translateY': true,
'translateX': true,
'accessibilityLabel': true,
'accessibilityLiveRegion': true,
'importantForAccessibility': true,
'rotation': true,
'opacity': true,
}});
module.exports = GLSurfaceView; |
i get error: 'Image' has no propType for native prop 'RCTImageView.overlayColor' of native type 'number' ,how can i resolve it. |
I try to bridge GLSurfaceView to React Native on Android.
This is ViewManager subclass
GLSurfaceViewManager.java
GLSurfaceView.js
And I get
"GLSurfaceView" has no propType for native prop "GLSurfaceView.scaleX" of native type number
The text was updated successfully, but these errors were encountered: