The Wesh network toolkit lets your application use the Wesh protocol to support privacy-based, off-grid, peer-to-peer communication.
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.
- Go >= 1.19.7
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 @weshnet/expo
# Install the pods (it will run gomobile bind)
$ cd ios && pod install
# Run the app
$ npx expo run:ios
Add the following to your App.js
:
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import * as WeshnetExpo from '@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>
);
}
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.
Dual-licensed under Apache 2.0 and MIT terms.
SPDX-License-Identifier: (Apache-2.0 OR MIT)
See the COPYRIGHT file for more details.