Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* 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
You can’t perform that action at this time.