https://github.com/shift72/rocket-expo
https://github.com/shift72/rocket-expo
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shift72/rocket-expo
- Owner: shift72
- Created: 2025-10-21T01:49:31.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-29T08:41:50.000Z (8 months ago)
- Last Synced: 2025-10-29T10:29:38.182Z (8 months ago)
- Language: Objective-C
- Size: 9.87 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocket SDK Expo edition
This is a thin wrapper over the Shift72 [`rocket-sdk-android`](https://github.com/shift72/rocket-sdk-android) and [`rocket-sdk-ios`](https://github.com/shift72/rocket-sdk-ios) native SDKs, easing use of them within Expo projects.
## Get started
1. Install dependencies
```bash
npm install git://github.com/shift72/rocket-expo.git
```
2. Add the plugin to app.json
```js
{
"expo": {
"plugins": [
"rocket-expo"
]
}
}
```
3. Run a prebuild
```bash
npx expo prebuild --clean
```
4. Run one-time initialisation somewhere in a root view
```js
import RocketExpo from 'rocket-expo';
useEffect(() => {
RocketExpo.setupHostname(hostname);
RocketExpo.setupLogger();
},[]);
```
5. Add a RocketExpoView somewhere
```js
import { RocketExpoView } from 'rocket-expo';
console.log("playback completed")}
style={{
width: '100%',
height: 400 //for example
}}
/>
```
6. Compile and start the app
### Android
```bash
npx expo run:android --device
```
### iOS
```bash
npx expo run:ios --device
```
## Notes
-