UNPKG

1.64 kBSource Map (JSON)View Raw
1{"version":3,"file":"AdIconView.js","sourceRoot":"","sources":["../src/AdIconView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAA0B,MAAM,gBAAgB,CAAC;AAI3E,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,SAAgB;IAC5D,MAAM;QACJ,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,QACxB,CAAC,YAA2C,EAAE,EAAE;YAC/C,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;YACzC,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,CAAC,KAAK,IAAE,GAAG,EAAE,OAAO,CAAC,SAAS,IAAI,CAAC;QACtE,CAAC,CAC0B,CAC9B,CAAC;IACJ,CAAC;CACF;AAID,iGAAiG;AACjG,MAAM,CAAC,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import { requireNativeViewManager } from '@unimodules/core';\nimport nullthrows from 'nullthrows';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { AdIconViewContext, AdIconViewContextValue } from './withNativeAd';\n\ntype Props = React.ComponentProps<typeof View>;\n\nexport default class AdIconView extends React.Component<Props> {\n render() {\n return (\n <AdIconViewContext.Consumer>\n {(contextValue: AdIconViewContextValue | null) => {\n const context = nullthrows(contextValue);\n return <NativeAdIconView {...this.props} ref={context.nativeRef} />;\n }}\n </AdIconViewContext.Consumer>\n );\n }\n}\n\n// The native AdIconView has the same props as regular View\nexport type NativeAdIconView = React.Component<Props>;\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- the type and variable share a name\nexport const NativeAdIconView = requireNativeViewManager('AdIconView');\n"]}
\No newline at end of file