@distilled.cloud/expo-eas
v1.0.0-rc.16
Published
Keywords
Readme
@distilled.cloud/expo-eas
Effect-native SDK for expo-eas.
Installation
npm install @distilled.cloud/expo-eas effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as Eas from "@distilled.cloud/expo-eas";
const program = Effect.gen(function* () {
const result = yield* Eas.getUserPreference({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
Eas.CredentialsFromEnv,
Eas.ExpoGraphqlProtocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: EXPO_TOKEN. Optional: EXPO_API_URL. Sent as Authorization: Bearer.
