![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.
@berty/gnonative
Advanced tools
Develop for Gno using your app's native language
We created a Javascript object helper (useGno) that wraps the RPC API. The
useGno object is defined in the GnoNative repo at /expo/src/hooks/use-gno.ts
.
The RPC API documentation is avalaible in the Buf registry:
Please follow the general Build instructions
in the main
README and then:
make asdf.install_tools
npx create-expo-app my-app
cd my-app
npm install @berty/gnonative
We prepared for you an example Hello World code.
Open App.js and replace the content by this:
import React, { useEffect, useState } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import * as Gnonative from '@berty/gnonative';
export default function App() {
const gno = Gnonative.useGno();
const [greeting, setGreeting] = useState('');
useEffect(() => {
const greeting = async () => {
try {
// sync Hello function
setGreeting(await gno.hello('Gno'));
// async Hello function
for await (const res of await gno.helloStream('Gno')) {
console.log(res.greeting);
}
} catch (error) {
console.log(error);
}
};
greeting();
}, []);
return (
<View style={styles.container}>
<Text>Hey {greeting}</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
# Re-generate the native project directories from scratch
npx expo prebuild --clean
# Run the example app on Android
npx expo run:android
# Run the example app on iOS
npx expo run:ios
For bare React Native projects, you must ensure that you have
installed and configured the expo
package
before continuing.
FAQs
Develop for Gno using your app's native language
The npm package @berty/gnonative receives a total of 0 weekly downloads. As such, @berty/gnonative popularity was classified as not popular.
We found that @berty/gnonative demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.