Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-react-native-web

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-native-web - npm Package Compare versions

Comparing version 0.11.7 to 0.12.0-rc.1

4

package.json

@@ -6,3 +6,3 @@ {

"name": "babel-plugin-react-native-web",
"version": "0.11.7",
"version": "0.12.0-rc.1",
"description": "Babel plugin for React Native for Web",

@@ -12,3 +12,3 @@ "main": "index.js",

"babel-core": "^6.26.3",
"babel-plugin-tester": "^5.0.0"
"babel-plugin-tester": "^7.0.4"
},

@@ -15,0 +15,0 @@ "author": "Nicolas Gallagher",

@@ -10,3 +10,3 @@ const plugin = require('..');

import { View } from 'react-native';
import { Invalid, View as MyView, ViewPropTypes } from 'react-native';
import { Invalid, View as MyView } from 'react-native';
import * as ReactNativeModules from 'react-native';`,

@@ -19,3 +19,3 @@ snapshot: true

import { View } from 'react-native';
import { Invalid, View as MyView, ViewPropTypes } from 'react-native';
import { Invalid, View as MyView } from 'react-native';
import * as ReactNativeModules from 'react-native';`,

@@ -27,4 +27,4 @@ snapshot: true,

title: 'import from "react-native-web"',
code: `import { createElement } from 'react-native-web';
import { ColorPropType, StyleSheet, View, TouchableOpacity, processColor } from 'react-native-web';
code: `import { unstable_createElement } from 'react-native-web';
import { StyleSheet, View, TouchableOpacity, processColor } from 'react-native-web';
import * as ReactNativeModules from 'react-native-web';`,

@@ -36,3 +36,3 @@ snapshot: true

code: `export { View } from 'react-native';
export { ColorPropType, StyleSheet, Text, createElement } from 'react-native';`,
export { StyleSheet, Text, unstable_createElement } from 'react-native';`,
snapshot: true

@@ -43,3 +43,3 @@ },

code: `export { View } from 'react-native-web';
export { ColorPropType, StyleSheet, Text, createElement } from 'react-native-web';`,
export { StyleSheet, Text, unstable_createElement } from 'react-native-web';`,
snapshot: true

@@ -65,4 +65,4 @@ },

code: `const ReactNative = require('react-native-web');
const { createElement } = require('react-native-web');
const { ColorPropType, StyleSheet, View, TouchableOpacity, processColor } = require('react-native-web');`,
const { unstable_createElement } = require('react-native-web');
const { StyleSheet, View, TouchableOpacity, processColor } = require('react-native-web');`,
snapshot: true

@@ -73,4 +73,11 @@ }

pluginTester({
babelOptions: {
generatorOpts: {
jsescOption: {
quotes: 'single'
}
}
},
plugin,
tests
});

@@ -7,6 +7,7 @@ const moduleMap = require('./moduleMap');

const format = isCommonJS(opts) ? 'cjs/' : '';
if (importName === 'index') {
const internalName = importName === 'unstable_createElement' ? 'createElement' : importName;
if (internalName === 'index') {
return `react-native-web/dist/${format}index`;
} else if (importName && moduleMap[importName]) {
return `react-native-web/dist/${format}exports/${importName}`;
} else if (internalName && moduleMap[internalName]) {
return `react-native-web/dist/${format}exports/${internalName}`;
}

@@ -13,0 +14,0 @@ };

// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
module.exports = {
AccessibilityInfo: true,
ActionSheetIOS: true,
ActivityIndicator: true,
Alert: true,
AlertIOS: true,
Animated: true,
AppRegistry: true,
AppState: true,
AsyncStorage: true,
BackHandler: true,
Button: true,
CameraRoll: true,
CheckBox: true,
Clipboard: true,
ColorPropType: true,
DatePickerAndroid: true,
DatePickerIOS: true,
DeviceEventEmitter: true,

@@ -25,3 +18,2 @@ DeviceInfo: true,

Easing: true,
EdgeInsetsPropType: true,
FlatList: true,

@@ -31,5 +23,2 @@ I18nManager: true,

ImageBackground: true,
ImageEditor: true,
ImagePickerIOS: true,
ImageStore: true,
InputAccessoryView: true,

@@ -41,20 +30,11 @@ InteractionManager: true,

Linking: true,
ListView: true,
MaskedViewIOS: true,
Modal: true,
NativeEventEmitter: true,
NativeModules: true,
NavigatorIOS: true,
NetInfo: true,
PanResponder: true,
PermissionsAndroid: true,
Picker: true,
PickerIOS: true,
PixelRatio: true,
Platform: true,
PointPropType: true,
ProgressBar: true,
ProgressBarAndroid: true,
ProgressViewIOS: true,
PushNotificationIOS: true,
RefreshControl: true,

@@ -64,12 +44,6 @@ SafeAreaView: true,

SectionList: true,
SegmentedControlIOS: true,
Settings: true,
Share: true,
Slider: true,
SnapshotViewIOS: true,
StatusBar: true,
StatusBarIOS: true,
StyleSheet: true,
SwipeableFlatList: true,
SwipeableListView: true,
Switch: true,

@@ -81,6 +55,4 @@ Systrace: true,

TextInput: true,
TextPropTypes: true,
TimePickerAndroid: true,
ToastAndroid: true,
ToolbarAndroid: true,
Touchable: true,

@@ -93,8 +65,4 @@ TouchableHighlight: true,

Vibration: true,
VibrationIOS: true,
View: true,
ViewPagerAndroid: true,
ViewPropTypes: true,
VirtualizedList: true,
WebView: true,
YellowBox: true,

@@ -105,3 +73,4 @@ createElement: true,

render: true,
unmountComponentAtNode: true
unmountComponentAtNode: true,
useWindowDimensions: true
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc