Create Local Expo Module
Installation
Creating the Local Expo Module
To create a local Expo module, ensure you are in the root of your project and run the following command:
npx create-expo-module caf-smart-auth-react-native --local
Expo will prompt you with the following questions during setup:
What is the name of the local module? caf-smart-auth-react-native
What is the native module name? CafSmartAuthBridgeModule
What is the Android package name? your-package-name
The module will be created in the following directory:
YourApp/modules/caf-smart-auth-react-native
Removing the Example Project
After the module is created, you can remove the automatically generated example files. To do this, execute the following commands from the project root:
cd modules/caf-smart-auth-react-native
rm ios/CafSmartAuthBridgeModuleView.swift
rm android/src/main/java/your/package/name/CafSmartAuthBridgeModuleView.kt
rm src/CafSmartAuthBridgeModuleView.tsx
rm src/CafSmartAuthBridgeModuleView.web.tsx
rm src/CafSmartAuthBridgeModule.web.ts
Now your module is ready for customization and integration into the project.
Last updated