import { requireNativeViewManager } from '@unimodules/core'; import nullthrows from 'nullthrows'; import React from 'react'; import { View } from 'react-native'; import { AdIconViewContext, AdIconViewContextValue } from './withNativeAd'; type Props = React.ComponentProps; export default class AdIconView extends React.Component { render() { return ( {(contextValue: AdIconViewContextValue | null) => { let context = nullthrows(contextValue); return ; }} ); } } // The native AdIconView has the same props as regular View export type NativeAdIconView = React.Component; export const NativeAdIconView = requireNativeViewManager('AdIconView');