https://github.com/fireblocks/react-native-ncw-sdk
React Native NCW SDK
https://github.com/fireblocks/react-native-ncw-sdk
android ios mpc ncw react-native sdk
Last synced: 12 months ago
JSON representation
React Native NCW SDK
- Host: GitHub
- URL: https://github.com/fireblocks/react-native-ncw-sdk
- Owner: fireblocks
- License: mit
- Created: 2024-03-18T08:31:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-14T10:02:55.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T01:31:35.839Z (over 1 year ago)
- Topics: android, ios, mpc, ncw, react-native, sdk
- Language: TypeScript
- Homepage:
- Size: 3.37 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# @fireblocks/react-native-ncw-sdk
Fireblocks NCW SDK bridge for React Native
## Installation
```sh
npm install @fireblocks/react-native-ncw-sdk
```
### Android additional setup
Add the Maven repository and SDK dependency to your app as described [here](https://ncw-developers.fireblocks.com/docs/setup-4#android-sdk-installation)
### iOS additional setup
1. Edit the following line to your app's `Podfile`
```rb
post_install do |installer|
$RNNCWSDK.post_install(installer) # <--- add this line
```
2. Install pod dependencies:
```sh
cd ios && bundle exec pod install
```
3. Open your project's workspace in Xcode
4. Add Fireblocks SDK Swift Package as described [here](https://ncw-developers.fireblocks.com/docs/setup-4#ios-sdk-installation), or:
File > Add Package Dependecies... > https://github.com/fireblocks/ncw-ios-sdk > Add Package > Add to Target: "Your Project" > Add Package
## Usage
```js
import { FireblocksNCWFactory } from '@fireblocks/react-native-ncw-sdk';
// ...
const fireblocksNCW = await FireblocksNCWFactory({
env: "sandbox", // or "production" etc
logLevel: "INFO",
deviceId,
messagesHandler,
eventsHandler,
secureStorageProvider,
});
```
## Example
[Example Project](example)
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)