Skip to content

Commit

Permalink
[standards] Migrate TurboModule example in RNTester to use path-based…
Browse files Browse the repository at this point in the history
… requires

See facebook#24316 for the motivation. This commit rewrites a couple more new imports in the RNTester project so they use path-based requires.

Test plan: run RNTester and ensure the TurboModule example loads.
  • Loading branch information
ide committed May 8, 2019
1 parent ff9f8f3 commit 2925d12
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 2925d12

Please sign in to comment.