Skip to content

Commit 69bd0f6

Browse files
committed
[change] Remove default ES Module export
Remove the default export that was provided for compatibility with legacy imports of React Native CommonJS modules. These patterns are no longer supported: ``` import ReactNative from 'react-native'; const ReactNative = require('react-native'); ``` Fix #1258 Close #1277
1 parent 9ce2b5b commit 69bd0f6

File tree

1 file changed

+0
-109
lines changed

1 file changed

+0
-109
lines changed

packages/react-native-web/src/index.js

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -214,112 +214,3 @@ export {
214214
TVEventHandler,
215215
VibrationIOS
216216
};
217-
218-
const ReactNative = {
219-
// top-level API
220-
createElement,
221-
findNodeHandle,
222-
render,
223-
unmountComponentAtNode,
224-
// modules
225-
processColor,
226-
NativeModules,
227-
TextPropTypes,
228-
ViewPropTypes,
229-
// APIs
230-
AccessibilityInfo,
231-
Alert,
232-
Animated,
233-
AppRegistry,
234-
AppState,
235-
AsyncStorage,
236-
BackHandler,
237-
Clipboard,
238-
DeviceInfo,
239-
Dimensions,
240-
Easing,
241-
I18nManager,
242-
InteractionManager,
243-
Keyboard,
244-
LayoutAnimation,
245-
Linking,
246-
NativeEventEmitter,
247-
NetInfo,
248-
PanResponder,
249-
PixelRatio,
250-
Platform,
251-
Share,
252-
StyleSheet,
253-
UIManager,
254-
Vibration,
255-
// components
256-
ActivityIndicator,
257-
ART,
258-
Button,
259-
CheckBox,
260-
FlatList,
261-
Image,
262-
ImageBackground,
263-
KeyboardAvoidingView,
264-
ListView,
265-
Modal,
266-
Picker,
267-
ProgressBar,
268-
RefreshControl,
269-
SafeAreaView,
270-
ScrollView,
271-
SectionList,
272-
Slider,
273-
StatusBar,
274-
SwipeableFlatList,
275-
SwipeableListView,
276-
Switch,
277-
Text,
278-
TextInput,
279-
Touchable,
280-
TouchableHighlight,
281-
TouchableNativeFeedback,
282-
TouchableOpacity,
283-
TouchableWithoutFeedback,
284-
View,
285-
VirtualizedList,
286-
YellowBox,
287-
// propTypes
288-
ColorPropType,
289-
EdgeInsetsPropType,
290-
PointPropType,
291-
// compat (components)
292-
DatePickerIOS,
293-
DrawerLayoutAndroid,
294-
ImageEditor,
295-
ImageStore,
296-
InputAccessoryView,
297-
MaskedViewIOS,
298-
NavigatorIOS,
299-
PickerIOS,
300-
ProgressBarAndroid,
301-
ProgressViewIOS,
302-
SegmentedControlIOS,
303-
SnapshotViewIOS,
304-
TabBarIOS,
305-
ToastAndroid,
306-
ToolbarAndroid,
307-
ViewPagerAndroid,
308-
WebView,
309-
// compat (apis)
310-
ActionSheetIOS,
311-
AlertIOS,
312-
CameraRoll,
313-
DatePickerAndroid,
314-
ImagePickerIOS,
315-
PermissionsAndroid,
316-
PushNotificationIOS,
317-
Settings,
318-
StatusBarIOS,
319-
Systrace,
320-
TimePickerAndroid,
321-
TVEventHandler,
322-
VibrationIOS
323-
};
324-
325-
export default ReactNative;

0 commit comments

Comments
 (0)