xref: /expo/packages/expo-document-picker/plugin/src/withDocumentPicker.ts (revision eebf9368)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { ConfigPlugin, createRunOncePlugin } from '@expo/config-plugins';
2
3import { withDocumentPickerIOS, IosProps } from './withDocumentPickerIOS';
4
5const pkg = require('expo-document-picker/package.json');
6
7const withDocumentPicker: ConfigPlugin<IosProps | void> = (
8  config,
9  { appleTeamId = process.env.EXPO_APPLE_TEAM_ID, iCloudContainerEnvironment } = {}
10) => {
11  config = withDocumentPickerIOS(config, { appleTeamId, iCloudContainerEnvironment });
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