Skip to content

PinataCloud/pinata-expo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pinata-expo

This repo contains packages that are compatible with React Native and Expo for uploading files to Pinata.

Warning

This package is still under development, please contact us if you have any issues!

Development

The pinata-expo monorepo uses pnpm to manage workspaces and building packages. The structure is as follows:

.
├── examples
│   ├── expo-app
│   └── expo-server
├── package.json
├── packages
│   └── hooks
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
└── README.md

Installation

To start clone the repo and install dependencies

git clone https://github.com/PinataCloud/pinata-expo
cd pinata-expo
pnpm install

Building

Move into the packages/hooks package to build it

cd packages/hooks
pnpm run build

Building will create a dist folder which will be accessible to other packages through workspace:* as seen in the expo-app example.

"pinata-expo-hooks": "workspace:*",

Examples

The examples folder contains an Expo app and a Hono server you can use together for testing.

Start by setting up the server, where you will need to create a .dev.vars file with the following contents:

PINATA_JWT=YOUR_PINATA_JWT
GATEWAY_URL=yourgateway.mypinata.cloud

Be sure to sub out the example values with your own. Then start up the dev server:

pnpm run dev

To use the expo-app simply move into that package, install dependencies, then start up the dev server.

cd examples/expo-app
pnpm install
pnpm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors