Skip to content

Instantly share code, notes, and snippets.

@pierre-H
pierre-H / index.d.ts
Last active Dec 9, 2020
Expo TypeScript Definitions
View index.d.ts
declare module 'Expo' {
import { EventSubscription } from 'fbemitter';
import { Component } from 'react';
import { ViewStyle, ViewProperties, ColorPropType } from 'react-native';
/**
* Expo Accelerometer
*/
export namespace Accelerometer {
// TODO: good export type of x, y and z