1--- 2title: 'Config plugins: Introduction' 3description: An introduction to config plugins for the Expo project. 4sidebar_title: Introduction 5--- 6 7import { Terminal } from '~/ui/components/Snippet'; 8import { BoxLink } from '~/ui/components/BoxLink'; 9 10An automatic setup for adding a native module to your project is possible. Sometimes, a module requires a more complex setup. A config plugin can be used to automatically configure your native project for a module and reduce the complexity by avoiding interaction with the native project. 11 12## What is a config plugin 13 14Config plugin is a system for extending the [Expo config](/workflow/configuration) and customizing the prebuild process for your app. They can be used to add native modules that aren't included, by default, or to add any native code that needs to be configured further. 15 16Internally Expo CLI uses config plugins to generate and configure all the native code for a managed project. Plugins do things such as generate app icons, set the app name, and configure the **AndroidManifest.xml**, **Info.plist**, and so on. 17 18You can think of plugins like a bundler for native projects, and running `npx expo prebuild` as a way to bundle the projects by evaluating all the project plugins. Doing so will generate **android** and **ios** directories. These directories can be modified manually after being generated, but then they can no longer be safely regenerated without potentially overwriting manual modifications. 19 20## Use a config plugin 21 22Expo config plugins mostly come from Node.js modules. You can install them just like other packages in your project. 23 24For example, `expo-camera` has a plugin that adds camera permissions to the **AndroidManifest.xml** and **Info.plist**. To install it in your project, run the following command: 25 26<Terminal cmd={['$ expo install expo-camera']} /> 27 28In your app's config (**app.json**, or **app.config.js**), you can add `expo-camera` to the list of plugins: 29 30```json app.json 31{ 32 "expo": { 33 "plugins": ["expo-camera"] 34 } 35} 36``` 37 38Some plugins such as for [`expo-camera`](/versions/latest/sdk/camera/) can be customized by passing an array, where the second argument is the options: 39 40```json app.json 41{ 42 "expo": { 43 "plugins": [ 44 [ 45 "expo-camera", 46 { 47 "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera." 48 } 49 ] 50 ] 51 } 52} 53``` 54 55> For each Expo package that a config plugin is available for, you'll find more information about that in the [package's API reference](/versions/latest/). 56 57On running the `npx expo prebuild`, the [`mods`]() are compiled, and the native files change. 58 59The changes don't take effect until you rebuild the native project, for example, with Xcode. **If you're using config plugins in a managed app, 60they will be applied during the prebuild phase on `eas build`**. 61 62## Next step 63 64<BoxLink 65 title="Creating a plugin" 66 description="Learn about how you can create a config plugin." 67 href="/config-plugins/plugins-and-mods" 68/> 69