Skip to content

Commit

Permalink
Migrate TurboModule example in RNTester to use path-based requires (#…
Browse files Browse the repository at this point in the history
…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: #24754

Differential Revision: D15258015

Pulled By: cpojer

fbshipit-source-id: adb298cb3006ea0afcd3b813a2e2fe85017764d2
  • Loading branch information
ide authored and facebook-github-bot committed May 8, 2019
1 parent 0436f81 commit 58608d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RNTester/js/SampleTurboModuleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

'use strict';

import NativeSampleTurboModule from 'NativeSampleTurboModule';
import NativeSampleTurboModule from 'react-native/Libraries/TurboModule/samples/NativeSampleTurboModule';
import {
StyleSheet,
Text,
Expand Down
2 changes: 1 addition & 1 deletion RNTester/js/TurboModuleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 58608d5

Please sign in to comment.