https://github.com/leapwallet/lumina-node-react-native
https://github.com/leapwallet/lumina-node-react-native
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/leapwallet/lumina-node-react-native
- Owner: leapwallet
- License: mit
- Created: 2025-01-22T19:51:33.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-19T09:06:09.000Z (3 months ago)
- Last Synced: 2025-02-19T09:23:26.277Z (3 months ago)
- Language: Swift
- Size: 37.8 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# lumina-node-react-native
## Installation
```sh
npm install lumina-node-react-native
# or
yarn add lumina-node-react-native
```## Usage
Start lumina node and listen to node events.
```typescript
import * as LuminClient from 'lumina-node-react-native';const network = 'mainnet'
const syncingWindowSeconds = 2 * 24 * 3600 // 2 days
await LuminaClient.start(network, syncingWindowSeconds)const eventListener = (event) => {
// Handle node events
}LuminaClient.eventEmitter.addListener('LuminaNodeEvent', eventListener)
// Stop Node
await LuminaClient.stop()// Check if node is running
const running = await LuminaClient.isRunning()```
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)