Wesh Network Expo Module
For details, see the Wesh website at https://wesh.network. The website includes blog tutorials which introduce you to Wesh and walk you through some example applications and background of the Wesh protocol.
The Wesh network toolkit lets your application use the Wesh protocol to support privacy-based, off-grid, peer-to-peer communication.
Requirements
- Go >= 1.19.7
Instalation
Install the package in your project:
# Expose ios and android native modules
# Ignore this step if you already have the 'ios' and 'android' folders in your project.
$ npx expo prebuild
# Install the package
$ npx expo install @berty/weshnet-expo
# Install the pods (it will run gomobile bind)
$ cd ios && pod install
# Run the app
$ npx expo run:ios
Usage
Add the following to your App.js
:
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import * as WeshnetExpo from '@berty/weshnet-expo';
export default function App() {
return (
<View style={styles.container}>
<Text>{WeshnetExpo.hello('berty')}</Text>
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
Contributing
If you want to help out, please see docs/developer-guide.md and CONTRIBUTING.md.
This repository falls under the Berty Code of Conduct.
You can contact us on the #dev-💻
channel on discord.
License
Dual-licensed under Apache 2.0 and MIT terms.
SPDX-License-Identifier: (Apache-2.0 OR MIT)
See the COPYRIGHT file for more details.