xref: /expo/packages/expo-document-picker/plugin/src/withDocumentPicker.ts (revision f8111c10)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { ConfigPlugin, createRunOncePlugin } from '@expo/config-plugins';
2
3import { withDocumentPickerIOS } from './withDocumentPickerIOS';
4
5const pkg = require('expo-document-picker/package.json');
6
7const withDocumentPicker: ConfigPlugin<{ appleTeamId?: string } | void> = (
8  config,
9  { appleTeamId = process.env.EXPO_APPLE_TEAM_ID } = {}
10) => {
11  config = withDocumentPickerIOS(config, { appleTeamId });
12  return config;
13};
14
15export default createRunOncePlugin(withDocumentPicker, pkg.name, pkg.version);
16

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026