Skip to content

Instantly share code, notes, and snippets.

@ericlewis
Created May 31, 2019 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlewis/12e96c42ab27faad6e6b47b40b0fb8bd to your computer and use it in GitHub Desktop.
Save ericlewis/12e96c42ab27faad6e6b47b40b0fb8bd to your computer and use it in GitHub Desktop.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
import type {TurboModule} from 'RCTExport';
import * as TurboModuleRegistry from 'TurboModuleRegistry';
export interface Spec extends TurboModule {
// types go here
}
export default TurboModuleRegistry.getEnforcing<Spec>('EXISTING_MODULE_NAME_HERE');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment