Files
react-native/RNTester/js/TurboModuleExample.js
James Ide 58608d5bdc Migrate TurboModule example in RNTester to use path-based requires (#24754)
Summary:
See #24316 for the motivation. This commit rewrites a couple more new imports in the RNTester project so they use path-based requires.

[General] [Changed] - Migrate TurboModule example in RNTester to use path-based requires
Pull Request resolved: https://github.com/facebook/react-native/pull/24754

Differential Revision: D15258015

Pulled By: cpojer

fbshipit-source-id: adb298cb3006ea0afcd3b813a2e2fe85017764d2
2019-05-08 03:06:14 -07:00

27 lines
614 B
JavaScript

/**
* 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.
*
* @format
* @flow
*/
'use strict';
const React = require('react');
const SampleTurboModuleExample = require('./SampleTurboModuleExample');
exports.displayName = (undefined: ?string);
exports.title = 'TurboModule';
exports.description = 'Usage of TurboModule';
exports.examples = [
{
title: 'SampleTurboModule',
render: function(): React.Element<any> {
return <SampleTurboModuleExample />;
},
},
];