mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
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
27 lines
614 B
JavaScript
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 />;
|
|
},
|
|
},
|
|
];
|