Skip to content

LiveLike/ll-react-native-demo

Repository files navigation

React Native Demo App for @livelike/enagagement-api

This App is bootstrapped using expo

Setup:

1. Install dependencies:
npm install
2. Configure Android or IOS dev environment
3. Install nvm

Nvm is needed to locally link @livelike/javascript and install its dependencies.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash

Add below lines in your .bashrc or .zshrc file

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Check nvm available in CLI and install node v18.12.1

nvm install v18.12.1
4. Clone websdk repo branch with engagement-api changes and link engagement-api

Inside cloned repo with proper checked out branch

cd release/javascript

This globally links @livelike/javascript package

npm link
5. Add @livelike/javascript dependencies in package.json
dependencies: {
    "@livelike/javascript": "0.0.0",
}
6. Locally link @livelike/javascript
npm run link-api

About

React native app demo using Livelike JS SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors