{"_id":"@dreamhorizonorg/raven-sdk-react-native","name":"@dreamhorizonorg/raven-sdk-react-native","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dreamhorizonorg/raven-sdk-react-native","version":"0.1.0","description":"React Native bridge for Raven: initialize the native Raven SDK on iOS and Android, manage user profile updates, and logout from JavaScript.","main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"source":"./src/index.tsx","types":"./lib/typescript/src/index.d.ts","default":"./lib/module/index.js"},"./package.json":"./package.json"},"scripts":{"example":"yarn workspace raven-sdk-react-native-example","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","prepare":"bob build","typecheck":"tsc","lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","release":"release-it --only-version"},"keywords":["react-native","raven","dream-horizon","ios","android","fcm","push-notifications","turbo-module"],"repository":{"type":"git","url":"git+https://github.com/dream-horizon-org/raven-sdk-react-native.git"},"author":{"name":"Dream Horizon","url":"https://github.com/dream-horizon-org"},"license":"MIT","bugs":{"url":"https://github.com/dream-horizon-org/raven-sdk-react-native/issues"},"homepage":"https://github.com/dream-horizon-org/raven-sdk-react-native#readme","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"devDependencies":{"@commitlint/config-conventional":"^19.8.1","@eslint/compat":"^1.3.2","@eslint/eslintrc":"^3.3.1","@eslint/js":"^9.35.0","@react-native/babel-preset":"0.83.0","@react-native/eslint-config":"0.83.0","@release-it/conventional-changelog":"^10.0.1","@types/jest":"^29.5.14","@types/react":"^19.2.0","commitlint":"^19.8.1","del-cli":"^6.0.0","eslint":"^9.35.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","jest":"^29.7.0","lefthook":"^2.0.3","prettier":"^2.8.8","react":"19.2.0","react-native":"0.83.0","react-native-builder-bob":"^0.40.18","release-it":"^19.0.4","turbo":"^2.5.6","typescript":"^5.9.2"},"peerDependencies":{"react":"*","react-native":"*"},"workspaces":["example"],"packageManager":"yarn@4.11.0","react-native-builder-bob":{"source":"src","output":"lib","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"codegenConfig":{"name":"RavenSdkReactNativeSpec","type":"modules","jsSrcsDir":"src","android":{"javaPackageName":"com.ravensdkreactnative"}},"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"raven-sdk-v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"create-react-native-library":{"type":"turbo-module","languages":"kotlin-objc","tools":["eslint","jest","lefthook","release-it"],"version":"0.57.2"},"_id":"@dreamhorizonorg/raven-sdk-react-native@0.1.0","gitHead":"948ae5111097fc2436a6fc9356dc2bb019fdb6d8","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aLp9S0mwzGqj+m4nGFqHoTgI2P3uYxq3CWx8FIXSCsB+V/wksaGtEve+ZEecJkObWl9+JiRA/PuSqFpnhV28+g==","shasum":"38b6308e6057c38b8360601b368b6559d694afe6","tarball":"https://registry.npmjs.org/@dreamhorizonorg/raven-sdk-react-native/-/raven-sdk-react-native-0.1.0.tgz","fileCount":40,"unpackedSize":54922,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDBjpUqWgBdf3TC+tSHxzTGJ3ORGGDW9U1/EqVSuecL+wIgR03frUoqNLhcpOytKEDqkBUyKGB+Y/2vvQwzOokU2xo="}]},"_npmUser":{"name":"dream11-atharva","email":"atharva.kothawade@dream11.com"},"directories":{},"maintainers":[{"name":"dream11-atharva","email":"atharva.kothawade@dream11.com"},{"name":"dfpv","email":"infra@dream11.com"},{"name":"princektripathi","email":"prince.tripathi@dream11.com"},{"name":"shubhamguptadream11","email":"shubham.gupta@dream11.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/raven-sdk-react-native_0.1.0_1774873147443_0.33026332422308546"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-30T12:19:07.343Z","0.1.0":"2026-03-30T12:19:07.608Z","modified":"2026-03-30T12:19:07.861Z"},"maintainers":[{"name":"dream11-atharva","email":"atharva.kothawade@dream11.com"},{"name":"dfpv","email":"infra@dream11.com"},{"name":"princektripathi","email":"prince.tripathi@dream11.com"},{"name":"shubhamguptadream11","email":"shubham.gupta@dream11.com"}],"description":"React Native bridge for Raven: initialize the native Raven SDK on iOS and Android, manage user profile updates, and logout from JavaScript.","homepage":"https://github.com/dream-horizon-org/raven-sdk-react-native#readme","keywords":["react-native","raven","dream-horizon","ios","android","fcm","push-notifications","turbo-module"],"repository":{"type":"git","url":"git+https://github.com/dream-horizon-org/raven-sdk-react-native.git"},"author":{"name":"Dream Horizon","url":"https://github.com/dream-horizon-org"},"bugs":{"url":"https://github.com/dream-horizon-org/raven-sdk-react-native/issues"},"license":"MIT","readme":"# @dreamhorizonorg/raven-sdk-react-native\n\nReact Native Turbo Module that bridges **[Raven](https://github.com/dream-horizon-org)** to your app: initialize the native Raven stack on **iOS** and **Android**, call **`updateUserProfile`**, and **`logout`** from JavaScript with one API surface.\n\n**Repository:** [github.com/dream-horizon-org/raven-sdk-react-native](https://github.com/dream-horizon-org/raven-sdk-react-native)\n\n## Features\n\n- **`initialize`** — Configure FCM/API endpoints and global props (user, device, app metadata).\n- **`updateUserProfile`** — Sync user profile fields with the backend.\n- **`logout`** — Clear session / tear down as implemented by the native SDKs.\n\nNative work is delegated to **raven-ios-sdk** (CocoaPods) and the Android communications SDK; this package exposes a stable JS API and types.\n\n## Requirements\n\n- React Native **0.83+** (aligned with this repo’s dev dependency; check peer ranges in `package.json` for your app).\n- iOS: CocoaPods, Firebase / `GoogleService-Info.plist` where required (see `example/ios` docs).\n- Android: Gradle setup compatible with the library’s `build.gradle` (GitHub Packages / Maven as documented for Raven Android artifacts).\n\n## Installation\n\n```sh\nyarn add @dreamhorizonorg/raven-sdk-react-native\n# or\nnpm install @dreamhorizonorg/raven-sdk-react-native\n```\n\nFollow native setup for **iOS** (`pod install`) and **Android** (Gradle repositories, `google-services.json`, etc.) using the [example app](example/) and [docs](docs/) as reference.\n\n## Usage\n\n```ts\nimport {\n  initialize,\n  updateUserProfile,\n  logout,\n} from '@dreamhorizonorg/raven-sdk-react-native';\n\nawait initialize({\n  fcmBaseUrl: 'https://your-api.example.com/',\n  apiKey: 'your-api-key',\n  globalProps: {\n    deviceId: 'device-123',\n    appVersion: '1.0.0',\n    appPackageName: 'com.example.app',\n    userId: 'user-123',\n  },\n});\n\nawait updateUserProfile({\n  userId: 'user-123',\n  firstName: 'Jane',\n  lastName: 'Doe',\n});\n\nawait logout();\n```\n\n## Publishing (maintainers)\n\nReleases are automated with GitHub Actions when you push a tag **`raven-sdk-vMAJOR.MINOR.PATCH`** (see `.github/workflows/publish.yml`). The package is published to the npm registry as **`@dreamhorizonorg/raven-sdk-react-native`** (the `name` field in `package.json`).\n\n## Contributing\n\n- [Development workflow](CONTRIBUTING.md#development-workflow)\n- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)\n- [Code of conduct](CODE_OF_CONDUCT.md)\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","readmeFilename":"README.md","_rev":"1-b00103ed11da8c6a3e53f0365841366b"}