![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@akinon/app-client
Advanced tools
Akinon AppClient library. This library is used to create a new plugin or an application which will reside in Akinon's applications.
The app-client
library provides a React context and hooks for integrating micro-frontend applications with the main application shell, enabling actions like navigation, displaying modals, and other inter-app communications.
To add the app-client
library to your project, run:
pnpm install @akinon/app-client
First, wrap your micro-frontend's root component with the AppClientProvider
:
import React from 'react';
import ReactDOM from 'react-dom';
import { AppClientProvider } from '@akinon/app-client';
import App from './App';
ReactDOM.render(
<AppClientProvider config={{ isDev: true }}>
<App />
</AppClientProvider>,
document.getElementById('root')
);
Then, use the useAppClient
hook within your components to access client functionalities:
import React from 'react';
import { useAppClient } from '@akinon/app-client';
const MyComponent = () => {
const { navigate } = useAppClient();
return <button onClick={() => navigate('/path')}>Go somewhere</button>;
};
Props:
config
: Configuration for the client application, including isDev and forceRedirect.useAppClient
HookProvides access to:
navigate(path: string)
: Function to navigate to a different route.invokeAction(actionKey: string, ...args: any[])
: Invoke a custom action defined in the app shell.data
: Data shared by host applications.The AppClientProvider
accepts the following configuration options:
isDev
: Enables development mode.forceRedirect
: Forces the application to load in an iframe if not already.For more information on configuration and usage, please refer to the detailed documentation.
FAQs
Akinon AppClient library. This library is used to create a new plugin or an application which will reside in Akinon's applications.
The npm package @akinon/app-client receives a total of 11 weekly downloads. As such, @akinon/app-client popularity was classified as not popular.
We found that @akinon/app-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.