mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate "androidTest" JS from Haste to path-based requires (#24813)
Summary: The files in `ReactAndroid/src/androidTest/js` use Haste names; this commit migrates them to use path-based imports. This helps us move RN towards standard path-based requires. All the requires in `androidTest` have been rewritten to use relative requires. [General] [Changed] - Migrate "androidTest" JS from Haste to path-based requires Pull Request resolved: https://github.com/facebook/react-native/pull/24813 Differential Revision: D15318108 Pulled By: cpojer fbshipit-source-id: dddc68f992b8dea48afb01fd4481bd5b846231ca
This commit is contained in:
committed by
Facebook Github Bot
parent
916186a7e6
commit
cd9adda651
@@ -10,14 +10,18 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const BatchedBridge = require('BatchedBridge');
|
||||
const React = require('React');
|
||||
const View = require('View');
|
||||
const ScrollView = require('ScrollView');
|
||||
const Text = require('Text');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
||||
const ScrollListener = require('NativeModules').ScrollListener;
|
||||
const React = require('react');
|
||||
const {
|
||||
NativeModules,
|
||||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
TouchableWithoutFeedback,
|
||||
View,
|
||||
} = require('react-native');
|
||||
const BatchedBridge = require('react-native/Libraries/BatchedBridge/BatchedBridge');
|
||||
|
||||
const {ScrollListener} = NativeModules;
|
||||
|
||||
const NUM_ITEMS = 100;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user