Lines Matching refs:module
12 …tialize a new module from scratch or add the Expo Modules API to an existing module. This guide wi…
14 The two recommended flows to create a new module with Expo Modules API:
16 - [Add a new module to an existing Expo application, and use it to test and develop your module.](#…
18 … new module in isolation with a generated example project if you want to reuse it in multiple proj…
22 ## Adding a new module to an existing application
26 ### Creating the local Expo module
28 …** file) and run the following command, which is the recommended way to create a local Expo module:
30 <Terminal cmd={[`$ npx create-expo-module@latest --local`]} />
32 It's best to provide a meaningful module name. However, you can accept the default suggestions for …
38 ### Using the module
47 Now, import the module in your application, for example in **App.js** or **App.tsx**:
50 import { hello } from './modules/my-module';
67 Congratulations! You have created a local Expo module. You can now start working on it.
76 ### Editing the module
82 You can always just edit the files in the `modules/my-module/android/src/main/java/expo/modules/mym…
90 Open the files in **modules/my-module/ios/** directory in your favorite code editor to edit them. A…
100 > There are also other flows for working on an Expo module in parallel with your application.
101 … as described in [How to use a standalone Expo module in your project](/modules/use-standalone-exp…
103 ## Creating a new module with an example project
107 ### Creating the Expo module
109 To create a new Expo module from scratch, run the `create-expo-module` script as shown below.
110 …ns and then generate the native Expo module along with the example app for Android and iOS that us…
112 <Terminal cmd={[`$ npx create-expo-module my-module`]} />
120 Navigate to the module directory and then open the Android and/or iOS example project by running th…
122 <Terminal cmd={[`$ cd my-module`, `$ npm run open:android`, `$ npm run open:ios`]} />
149 Now that you've learned how to initialize a module and make simple changes to it, you can continue …
152 title="Creating your first native module"
153 …description="Create a simple, but complete, native module to interact with Android and iOS prefere…
154 href="/modules/native-module-tutorial"
161 href="/modules/module-api"