@microsoft/power-apps-native-host
v0.2.22
Published
React Native host integration for @microsoft/power-apps
Readme
@microsoft/power-apps-native-host
React Native host integration for @microsoft/power-apps. Provides the
provider tree, authentication context, connection setup UI, and platform
bridges required to embed Power Apps in a React Native / Expo application.
Build a Mobile App with Power Platform
Start from the Power Platform mobile app template, then use the mobile-app skill to generate the app plan, data model, screens, native capabilities, and connector wiring.
npx degit microsoft/power-platform-skills/plugins/mobile-apps/template#main my-mobile-app
cd my-mobile-app
npm installInstall the mobile-app skill from the Power Platform skills plugin:
https://github.com/microsoft/power-platform-skills/tree/main/plugins/mobile-apps/plugin.jsonThen open the template folder in VS Code and run the skill from Copilot Chat:
/create-mobile-appThe template includes this host package and the required Expo / React Native runtime dependencies. The skill updates the app in place as it designs and generates the mobile experience.
Usage
import { PowerAppsProvider, useAuth } from '@microsoft/power-apps-native-host';
export default function App() {
return (
<PowerAppsProvider>
<YourApp />
</PowerAppsProvider>
);
}See src/index.ts for the full exported API.
Bundled CLI scripts
This package exposes three CLI scripts via the bin field:
generate-connector-schemas— generates TypeScript schemas from connector definitionsjs-bundle— packages the JS bundle for embeddingbuild-ios-base— builds the iOS base framework
