import React from 'react'; import { type StyleProp, type ViewStyle, requireNativeComponent, StyleSheet, Platform, } from 'react-native'; import { AdChoicesViewContext, type AdChoicesViewContextValueType, } from './contexts'; interface AdChoicesProps { location?: AdChoiceLocation; expandable?: boolean; style?: StyleProp; } // tslint:disable-next-line:variable-name const NativeAdChoicesView = requireNativeComponent< AdChoicesProps & { placementId: string } >('AdChoicesView'); type AdChoiceLocation = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'; export default class AdChoicesView extends React.Component { static defaultProps: AdChoicesProps = { location: 'topLeft', expandable: false, }; render() { return ( {(placementId: AdChoicesViewContextValueType) => ( )} ); } } const styles = StyleSheet.create({ adChoice: { backgroundColor: 'transparent', ...Platform.select({ ios: { width: 0, height: 0, }, android: { width: 22, height: 22, }, }), }, });