Skip to content

elcheffo/drift-mobile

Repository files navigation

Drift expo app

Barebone example to load @drift-labs/sdk into a React native project (Expo)

Running app

Install dependencies and start expo

yarn && yarn start
# Press `i` to run in Simulator

Dependencies using Node standard libraries

References to node standard library modules will case issue during build time. It can be fixed via packages mapping along with npm: prefix

You can find compatiable node standard libraries for browser here

Polyfill through npm packages

Following example will allow

{
   "process": "npm:shtylman/node-process",
   "os": "npm:os-browserify",
   "path": "npm:path-browserify",
}

Issue with unable to subscribe to Account via Drift client

Caused by how @solana/web3.js decide to use Buffer class to create the RPC response, which is a method that is missing in React native, here is the solution

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors