UNPKG

karte-expo-plugin

Version:

Config plugin for karte-react-native package

16 lines (11 loc) 498 B
import { ConfigPlugin, createRunOncePlugin } from "expo/config-plugins"; import { ConfigProps } from "./types"; import { withKarteAndroid } from "./withKarteAndroid"; import { withKarteiOS } from "./withKarteiOS"; const withKarte: ConfigPlugin<ConfigProps> = (config, props) => { config = withKarteiOS(config, props); config = withKarteAndroid(config, props); return config; }; const pkg = require("../package.json"); export default createRunOncePlugin(withKarte, pkg.name, pkg.version);