Skip to content

OpacityLabs/opacity-rn-sample

Repository files navigation

opacity-rn-sample

The Opacity Networks sample application written for React Native on iOS, using a MAC development environment. This is a React Native project, bootstrapped using @react-native-community/cli. Android support is still experimental at this stage.

For additional reference please review our documentation: https://docs.opacity.network/

For core sdk repositories:

Setup and installation

Set up a development environment

  1. Install Homebrew if necessary.

  2. Follow directions in the React Native documentation. The latest version of XCode installs the command-line tools and the latest iOS emulator for you automatically.

  3. Install yarn.

    brew install yarn
  4. Install the CocoaPods depndency manager.

    brew install cocoapods

Set up the application

  1. Clone the github repository.

    git clone https://github.com/OpacityLabs/opacity-rn-sample.git
    cd opacity-rn-sample
  2. Install packages

    yarn install
  3. Update dependencies. Note that you need to redo this step when you pull a new version from GitHub.

    yarn pods
  4. Open XCode.

  5. Compile (if needed) and start the application.

    yarn ios

    Note that compilation takes a long time, especially the first one. Also, if you get a white iPhone screen, close the application and start it again.

Run the application

  1. You need an API key, get it from the Opacity developer portal.

  2. The sample application should open automatically. If it does not, scroll right in the emulator and in the second screen click opacitySample.

  3. Paste the API key in the field and click Next.

  4. Select the platform to search. For the purpsoe of this guide, select GitHub.

  5. Click the resource Profile and log on to your GitHub account.

  6. See that you can view your GitHub profile through Opacity. Unfortunately, it is harder to show in a demo that the protocol is working correctly, that the data is truly safe and verified.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •