mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
0436f81595
commit
58608d5bdc
@@ -10,7 +10,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import NativeSampleTurboModule from 'NativeSampleTurboModule';
|
||||
import NativeSampleTurboModule from 'react-native/Libraries/TurboModule/samples/NativeSampleTurboModule';
|
||||
import {
|
||||
StyleSheet,
|
||||
Text,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
'use strict';
|
||||
|
||||
const React = require('react');
|
||||
const SampleTurboModuleExample = require('SampleTurboModuleExample');
|
||||
const SampleTurboModuleExample = require('./SampleTurboModuleExample');
|
||||
|
||||
exports.displayName = (undefined: ?string);
|
||||
exports.title = 'TurboModule';
|
||||
|
||||
Reference in New Issue
Block a user