({
executeAddon,
licenseKey,
}: Props)
| 805 | }; |
| 806 | |
| 807 | export const requireAddon = ({ |
| 808 | executeAddon, |
| 809 | licenseKey, |
| 810 | }: Props): |
| 811 | | { |
| 812 | execute: (config: AddonConfig) => Promise<void>; |
| 813 | |
| 814 | writeAndroidAssets: (_: { |
| 815 | androidOutputPath: string; |
| 816 | props: Props; |
| 817 | }) => Promise<void>; |
| 818 | |
| 819 | writeIOSAssets: (_: { |
| 820 | iosOutputPath: string; |
| 821 | props: Props; |
| 822 | }) => Promise<void>; |
| 823 | |
| 824 | writeWebAssets: (_: { |
| 825 | htmlTemplatePath: string; |
| 826 | props: Props; |
| 827 | }) => Promise<void>; |
| 828 | |
| 829 | writeGenericAssets: (_: { props: Props }) => Promise<void>; |
| 830 | |
| 831 | withAndroidColorsNight: (_: { |
| 832 | config: Expo.ExportedConfigWithProps; |
| 833 | props: Props; |
| 834 | }) => Promise<Expo.ExportedConfigWithProps>; |
| 835 | } |
| 836 | | undefined => { |
| 837 | if (licenseKey != null && executeAddon) { |
| 838 | try { |
| 839 | const addon = require("./addon"); |
| 840 | return "default" in addon ? addon.default : addon; |
| 841 | } catch { |
| 842 | return; |
| 843 | } |
| 844 | } |
| 845 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…