77 StyleSheet ,
88 Platform ,
99} from 'react-native' ;
10- import { string , func , arrayOf , number , oneOfType } from 'prop-types' ;
10+ import propTypes , { func , string } from 'prop-types' ;
1111
1212const reloadAdKey = Platform . select ( {
1313 ios : UIManager . CYNativeAdView . Commands . reloadAd ,
@@ -49,7 +49,7 @@ class CYNativeAdView extends Component {
4949
5050const styles = StyleSheet . create ( {
5151 natvieAdView : {
52- height : 167 ,
52+ height : 104 ,
5353 width : '100%' ,
5454
5555 }
@@ -61,7 +61,7 @@ CYNativeAdView.propTypes = {
6161 /**
6262 * ad unit ID provided from admob
6363 */
64- adUnitID : string ,
64+ adUnitID : propTypes . string ,
6565
6666 /**
6767 * color[0] : ad's background color
@@ -71,7 +71,12 @@ CYNativeAdView.propTypes = {
7171 * color[4] : ad's button backgroud color
7272 * e.g. {['#00ffff','#ff00ff', '#660000', '#53cd12', '#66000000']}
7373 */
74- adColors : arrayOf ( oneOfType ( [ string ] ) ) ,
74+ adColors : propTypes . arrayOf ( propTypes . oneOfType ( [ string ] ) ) ,
75+
76+ /*
77+ * has image within this layout
78+ */
79+ adLayoutWithImage : propTypes . bool ,
7580
7681 /**
7782 * indicate that ad has failed to load
0 commit comments