Skip to content

Instantly share code, notes, and snippets.

@jeluard
Created July 26, 2018 14:53
Show Gist options
  • Save jeluard/b3a416fcac297dcbf52dc3f23aa958f1 to your computer and use it in GitHub Desktop.
Save jeluard/b3a416fcac297dcbf52dc3f23aa958f1 to your computer and use it in GitHub Desktop.

Now that the ancient knowledge of adding DApps to status is known, Rachel will be the new master of curated DApps in status :D

3 steps to add a new DApp

Update the data used by Status

Modify the content of src/status_im/ui/screens/contacts/default_dapps.cljs To add a DApp, find the proper category (identified by :title) then add the following modifed to the :data array structure:

{:name        "Bancor"
 :dapp-url    "https://www.bancor.network/"
 :photo-path  "contacts://bancor"
 :description "Bancor is a decentralized liquidity network"}

Add the associated image

Copy the DApp image in resources/images/contacts.

Reference the image in status

Modify the content of src/status_im/react_native/resources Add following modified line:

:bancor             (js/require "./resources/images/contacts/bancor.png")

Where :bancor macthes the photo-path value from first step and the resource location the file name from second step.

Then you can go ahead and create a PR !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment