Skip to content

Commit

Permalink
README: Fix App.tsx example code to put styles separately.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 committed Nov 29, 2024
1 parent 431e747 commit e2afbca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ npx expo install @berty/weshnet-expo

## Usage

Add the following to your `App.tsx`:
Open `App.tsx` and replace the contents with the following code:

```tsx
import React, { useState, useEffect } from "react";
Expand All @@ -61,16 +61,16 @@ export default function App() {
return (
<View style={styles.container}>{!peerID ? loadingView : weshView}</View>
);

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
```

`weshnet` needs some system permissions to get the phone's connectivity status and make `mDNS` working. Edit your `app.json` to include the following permissions:
Expand Down

0 comments on commit e2afbca

Please sign in to comment.