Skip to content

Commit

Permalink
docs: fixed incorrect package installation command in README (openwal…
Browse files Browse the repository at this point in the history
…let-foundation#21)

Signed-off-by: Jim Ezesinachi <jim@animo.id>
  • Loading branch information
jimezesinachi authored Dec 8, 2022
1 parent 5a54107 commit 8c7eff1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ can listen to incoming messages and send messages to the other participant.
First, you need to add the dependency to your project:

```sh
yarn add react-native-ble-didcomm
yarn add @animo-id/react-native-ble-didcomm
```

### Android
Expand Down Expand Up @@ -132,7 +132,7 @@ React.useEffect(() => {
### Start advertising (peripheral):

```typescript
import { startPeripheral, advertise } from 'react-native-ble-didcomm'
import { startPeripheral, advertise } from '@animo-id/react-native-ble-didcomm'

await startPeripheral()
await advertise()
Expand All @@ -141,7 +141,7 @@ await advertise()
### Start scanning (central):

```typescript
import { startCentral, scan } from 'react-native-ble-didcomm'
import { startCentral, scan } from '@animo-id/react-native-ble-didcomm'

await startCentral()
await scan()
Expand All @@ -150,7 +150,7 @@ await scan()
### Connect (central):

```typescript
import { connect } from 'react-native-ble-didcomm'
import { connect } from '@animo-id/react-native-ble-didcomm'

// peripheralId can be retrieved from the `onDiscoverPeripheralListener`
// as shown above with the listeners
Expand All @@ -161,15 +161,15 @@ await connect(peripheralId)
### Send message (central):

```typescript
import { write } from 'react-native-ble-didcomm'
import { write } from '@animo-id/react-native-ble-didcomm'

await write('Hello World!')
```

### Send indication / message (peripheral):

```typescript
import { notify } from 'react-native-ble-didcomm'
import { notify } from '@animo-id/react-native-ble-didcomm'

await notify('Hello World!')
```
Expand Down

0 comments on commit 8c7eff1

Please sign in to comment.