mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-15 13:27:38 +08:00
Rewrite imports in RNTester to use standard paths (#24317)
Summary: See https://github.com/facebook/react-native/issues/24316 for the motivation. This commit rewrites the imports in the RNTester project. [General] [Changed] - Replaced Haste-style imports with standard path-style imports for RNTester Pull Request resolved: https://github.com/facebook/react-native/pull/24317 Differential Revision: D14870504 Pulled By: cpojer fbshipit-source-id: b14f22e7ce559efc332ced032617ca581196d90f
This commit is contained in:
committed by
Facebook Github Bot
parent
265ae58038
commit
26cce3d7a8
@@ -10,7 +10,6 @@
|
||||
'use strict';
|
||||
|
||||
const React = require('react');
|
||||
const ReactNative = require('react-native');
|
||||
const {
|
||||
Image,
|
||||
StyleSheet,
|
||||
@@ -19,9 +18,9 @@ const {
|
||||
TouchableOpacity,
|
||||
View,
|
||||
ViewPagerAndroid,
|
||||
} = ReactNative;
|
||||
} = require('react-native');
|
||||
|
||||
import type {ViewPagerScrollState} from 'ViewPagerAndroid';
|
||||
import type {ViewPagerScrollState} from '../../Libraries/Components/ViewPager/ViewPagerAndroid';
|
||||
|
||||
const PAGES = 5;
|
||||
const BGCOLOR = ['#fdc08e', '#fff6b9', '#99d1b7', '#dde5fe', '#f79273'];
|
||||
|
||||
Reference in New Issue
Block a user