You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
@Lauman, do you see this issue if you execute the following?
npx create-react-native-app
cd YOUR_PROJECT_NAME_GOES_HERE
npm install @waku/react-native
edit App.js with this example code:
import{StatusBar}from'expo-status-bar';importReactfrom'react';import{StyleSheet,Text,View}from'react-native';import{newNode,start,isStarted,peerID}from'@waku/react-native';exportdefaultfunctionApp(){React.useEffect(()=>{(async()=>{constnodeStarted=awaitisStarted();if(!nodeStarted){awaitnewNode(null);awaitstart();}console.log("The peer ID:",awaitpeerID())})();},[]);return(<Viewstyle={styles.container}><Text>Open up App.js to start working on your app!</Text><StatusBarstyle="auto"/></View>);}conststyles=StyleSheet.create({container: {flex: 1,backgroundColor: '#fff',alignItems: 'center',justifyContent: 'center',},});
Execute npm run ios
The app should run succesfully in the emulator, and print also in the terminal the peer ID of the node.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I followed the code in the example but I get an error in the build.
SDK Version
To Reproduce
Steps to reproduce the behavior:
Screenshots
Thanks!
The text was updated successfully, but these errors were encountered: