https://github.com/castle/castle-react-native
React Native library for Castle
https://github.com/castle/castle-react-native
api authentication brute-force castle javascript login password react-native sdk
Last synced: 9 months ago
JSON representation
React Native library for Castle
- Host: GitHub
- URL: https://github.com/castle/castle-react-native
- Owner: castle
- License: mit
- Created: 2021-01-18T10:19:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T10:19:11.000Z (over 1 year ago)
- Last Synced: 2024-09-18T10:17:31.886Z (over 1 year ago)
- Topics: api, authentication, brute-force, castle, javascript, login, password, react-native, sdk
- Language: Java
- Homepage: https://castle.io
- Size: 2.14 MB
- Stars: 12
- Watchers: 13
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Castle for React Native
**[Castle](https://castle.io) adds real-time monitoring to your authentication stack, instantly notifying you and your users of potential account hijacks.**
[](https://www.npmjs.com/package/@castleio/react-native-castle)
[](https://www.npmjs.com/package/@castleio/react-native-castle)
[](https://circleci.com/gh/castle/castle-react-native)
[](https://codecov.io/gh/castle/castle-react-native)
## Requirements
### React Native
- React Native 0.76.9+
### iOS
- iOS 15.1+
- Xcode 16.3+
### Android
- Android 7.0
## Installation
Add the `@castleio/react-native-castle` package to your `package.json`.
### yarn
```bash
yarn add @castleio/react-native-castle
```
### npm
```bash
npm install --save @castleio/react-native-castle
```
### Linking Native Code on iOS
Run `pod install` in the `ios` directory in order to link to the native iOS project. A shortcut for doing this without switching directories is to run
```bash
npx pod-install
```
Once completed, re-build the app binary and start using the library
```bash
npx react-native run-ios
```
### Liking Native Code on Android
In order to start using the library you'll need to re-build the app binary
```bash
npx react-native run-android
```
## Usage
Please see the [Mobile Integration Guide](https://docs.castle.io).
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT