Skip to content

Commit 566dfc1

Browse files
committed
chore: update readme
1 parent adc8bac commit 566dfc1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Very basic support so far, just js-libp2p itself, no extra modules yet.
44

5-
1. Turn on exports map support
5+
1. Turn on [exports map support](https://reactnative.dev/blog/2023/06/21/package-exports-support)
66

77
```js
88
// metro.config.js
@@ -15,11 +15,7 @@ module.exports = {
1515

1616
2. Shimming globals
1717

18-
Some standard JS APIs aren't available in React Native:
19-
20-
1. `crypto.getRandomValues` - `react-native-get-random-values`
21-
2. `TextEncoder`/`TextDecoder` - `text-encoding`
22-
3. `EventTarget`/`Event` - `event-target-shim`
18+
Some standard JS APIs aren't available in React Native, these need to be polyfilled, hopefully [not forever](https://github.com/facebook/hermes/discussions/1072).
2319

2420
```js
2521
// globals.js - this should be imported at the top of your App.js file

0 commit comments

Comments
 (0)