diff --git a/docs/NativeComponentsAndroid.md b/docs/NativeComponentsAndroid.md index 62a0cc95a..b9e01426b 100644 --- a/docs/NativeComponentsAndroid.md +++ b/docs/NativeComponentsAndroid.md @@ -106,7 +106,7 @@ The very final step is to create the JavaScript module that defines the interfac // ImageView.js import { PropTypes } from 'react'; -import { requireNativeComponent } from 'react-native'; +import { requireNativeComponent, View } from 'react-native'; var iface = { name: 'ImageView', @@ -114,6 +114,7 @@ var iface = { src: PropTypes.string, borderRadius: PropTypes.number, resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch']), + ...View.propTypes // include the default view properties }, };