|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`1. Rewrite react-native paths for react-native-web 1`] = ` |
| 3 | +exports[`export from "react-native" 1`] = ` |
4 | 4 | "
|
5 |
| -import { View } from 'react-native'; |
| 5 | +export { View } from 'react-native'; |
| 6 | +export { ColorPropType, StyleSheet, Text, createElement } from 'react-native'; |
6 | 7 |
|
7 | 8 | ↓ ↓ ↓ ↓ ↓ ↓
|
8 | 9 |
|
9 |
| -import View from 'react-native-web/dist/components/View'; |
| 10 | +export { default as View } from 'react-native-web/dist/components/View'; |
| 11 | +export { default as ColorPropType } from 'react-native-web/dist/propTypes/ColorPropType'; |
| 12 | +export { default as StyleSheet } from 'react-native-web/dist/apis/StyleSheet'; |
| 13 | +export { default as Text } from 'react-native-web/dist/components/Text'; |
| 14 | +export { default as createElement } from 'react-native-web/dist/modules/createElement'; |
10 | 15 | "
|
11 | 16 | `;
|
12 | 17 |
|
13 |
| -exports[`2. Rewrite react-native paths for react-native-web 1`] = ` |
| 18 | +exports[`export from "react-native-web" 1`] = ` |
14 | 19 | "
|
15 |
| -import { Switch, Text, View as MyView, ViewPropTypes } from 'react-native'; |
| 20 | +export { View } from 'react-native-web'; |
| 21 | +export { ColorPropType, StyleSheet, Text, createElement } from 'react-native-web'; |
16 | 22 |
|
17 | 23 | ↓ ↓ ↓ ↓ ↓ ↓
|
18 | 24 |
|
19 |
| -import Switch from 'react-native-web/dist/components/Switch'; |
20 |
| -import Text from 'react-native-web/dist/components/Text'; |
21 |
| -import MyView from 'react-native-web/dist/components/View'; |
22 |
| -import ViewPropTypes from 'react-native-web/dist/components/View/ViewPropTypes'; |
| 25 | +export { default as View } from 'react-native-web/dist/components/View'; |
| 26 | +export { default as ColorPropType } from 'react-native-web/dist/propTypes/ColorPropType'; |
| 27 | +export { default as StyleSheet } from 'react-native-web/dist/apis/StyleSheet'; |
| 28 | +export { default as Text } from 'react-native-web/dist/components/Text'; |
| 29 | +export { default as createElement } from 'react-native-web/dist/modules/createElement'; |
23 | 30 | "
|
24 | 31 | `;
|
25 | 32 |
|
26 |
| -exports[`3. Rewrite react-native paths for react-native-web 1`] = ` |
| 33 | +exports[`import from "native-native" 1`] = ` |
27 | 34 | "
|
28 |
| -import { createElement, Switch, StyleSheet } from 'react-native'; |
| 35 | +import ReactNative from 'react-native'; |
| 36 | +import { View } from 'react-native'; |
| 37 | +import { Invalid, View as MyView, ViewPropTypes } from 'react-native'; |
| 38 | +import * as ReactNativeModules from 'react-native'; |
29 | 39 |
|
30 | 40 | ↓ ↓ ↓ ↓ ↓ ↓
|
31 | 41 |
|
32 |
| -import createElement from 'react-native-web/dist/modules/createElement'; |
33 |
| -import Switch from 'react-native-web/dist/components/Switch'; |
34 |
| -import StyleSheet from 'react-native-web/dist/apis/StyleSheet'; |
| 42 | +import ReactNative from 'react-native-web/dist/index'; |
| 43 | +import View from 'react-native-web/dist/components/View'; |
| 44 | +import { Invalid } from 'react-native-web/dist/index'; |
| 45 | +import MyView from 'react-native-web/dist/components/View'; |
| 46 | +import ViewPropTypes from 'react-native-web/dist/components/View/ViewPropTypes'; |
| 47 | +import * as ReactNativeModules from 'react-native-web/dist/index'; |
35 | 48 | "
|
36 | 49 | `;
|
37 | 50 |
|
38 |
| -exports[`4. Rewrite react-native paths for react-native-web 1`] = ` |
| 51 | +exports[`import from "react-native-web" 1`] = ` |
39 | 52 | "
|
40 |
| -import { InvalidThing, TouchableOpacity } from 'react-native'; |
| 53 | +import { createElement } from 'react-native-web'; |
| 54 | +import { ColorPropType, StyleSheet, View, TouchableOpacity, processColor } from 'react-native-web'; |
| 55 | +import * as ReactNativeModules from 'react-native-web'; |
41 | 56 |
|
42 | 57 | ↓ ↓ ↓ ↓ ↓ ↓
|
43 | 58 |
|
44 |
| -import { InvalidThing } from 'react-native-web'; |
| 59 | +import createElement from 'react-native-web/dist/modules/createElement'; |
| 60 | +import ColorPropType from 'react-native-web/dist/propTypes/ColorPropType'; |
| 61 | +import StyleSheet from 'react-native-web/dist/apis/StyleSheet'; |
| 62 | +import View from 'react-native-web/dist/components/View'; |
45 | 63 | import TouchableOpacity from 'react-native-web/dist/components/Touchable/TouchableOpacity';
|
| 64 | +import processColor from 'react-native-web/dist/modules/processColor'; |
| 65 | +import * as ReactNativeModules from 'react-native-web/dist/index'; |
46 | 66 | "
|
47 | 67 | `;
|
48 | 68 |
|
49 |
| -exports[`5. Rewrite react-native paths for react-native-web 1`] = ` |
50 |
| -" |
51 |
| -import * as RNW from 'react-native'; |
52 |
| -
|
53 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
54 |
| -
|
55 |
| -import * as RNW from 'react-native-web'; |
56 |
| -" |
57 |
| -`; |
58 |
| - |
59 |
| -exports[`6. Rewrite react-native paths for react-native-web 1`] = ` |
60 |
| -" |
61 |
| -const { View } = require('react-native'); |
62 |
| -
|
63 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
64 |
| -
|
65 |
| -const View = require('react-native-web/dist/components/View'); |
66 |
| -" |
67 |
| -`; |
68 |
| - |
69 |
| -exports[`7. Rewrite react-native paths for react-native-web 1`] = ` |
70 |
| -" |
71 |
| -let { Switch, Text, View: MyView } = require('react-native'); |
72 |
| -
|
73 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
74 |
| -
|
75 |
| -let Switch = require('react-native-web/dist/components/Switch'); |
76 |
| -
|
77 |
| -let Text = require('react-native-web/dist/components/Text'); |
78 |
| -
|
79 |
| -let MyView = require('react-native-web/dist/components/View'); |
80 |
| -" |
81 |
| -`; |
82 |
| - |
83 |
| -exports[`8. Rewrite react-native paths for react-native-web 1`] = ` |
| 69 | +exports[`require "react-native-web" 1`] = ` |
84 | 70 | "
|
85 |
| -var { createElement, Switch, StyleSheet } = require('react-native'); |
| 71 | +const ReactNative = require('react-native-web'); |
| 72 | +const { createElement } = require('react-native-web'); |
| 73 | +const { ColorPropType, StyleSheet, View, TouchableOpacity, processColor } = require('react-native-web'); |
86 | 74 |
|
87 | 75 | ↓ ↓ ↓ ↓ ↓ ↓
|
88 | 76 |
|
89 |
| -var createElement = require('react-native-web/dist/modules/createElement'); |
| 77 | +const ReactNative = require('react-native-web'); |
90 | 78 |
|
91 |
| -var Switch = require('react-native-web/dist/components/Switch'); |
| 79 | +const createElement = require('react-native-web/dist/modules/createElement'); |
92 | 80 |
|
93 |
| -var StyleSheet = require('react-native-web/dist/apis/StyleSheet'); |
94 |
| -" |
95 |
| -`; |
| 81 | +const ColorPropType = require('react-native-web/dist/propTypes/ColorPropType'); |
96 | 82 |
|
97 |
| -exports[`9. Rewrite react-native paths for react-native-web 1`] = ` |
98 |
| -" |
99 |
| -const { InvalidThing, TouchableOpacity } = require('react-native'); |
| 83 | +const StyleSheet = require('react-native-web/dist/apis/StyleSheet'); |
100 | 84 |
|
101 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
| 85 | +const View = require('react-native-web/dist/components/View'); |
102 | 86 |
|
103 | 87 | const TouchableOpacity = require('react-native-web/dist/components/Touchable/TouchableOpacity');
|
104 |
| -" |
105 |
| -`; |
106 |
| - |
107 |
| -exports[`10. Rewrite react-native paths for react-native-web 1`] = ` |
108 |
| -" |
109 |
| -export { View } from 'react-native'; |
110 |
| -
|
111 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
112 |
| -
|
113 |
| -export { default as View } from 'react-native-web/dist/components/View'; |
114 |
| -" |
115 |
| -`; |
116 |
| - |
117 |
| -exports[`11. Rewrite react-native paths for react-native-web 1`] = ` |
118 |
| -" |
119 |
| -export { Switch, Text, View as MyView, ViewPropTypes } from 'react-native'; |
120 |
| -
|
121 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
122 |
| -
|
123 |
| -export { default as Switch } from 'react-native-web/dist/components/Switch'; |
124 |
| -export { default as Text } from 'react-native-web/dist/components/Text'; |
125 |
| -export { default as MyView } from 'react-native-web/dist/components/View'; |
126 |
| -export { default as ViewPropTypes } from 'react-native-web/dist/components/View/ViewPropTypes'; |
127 |
| -" |
128 |
| -`; |
129 |
| - |
130 |
| -exports[`12. Rewrite react-native paths for react-native-web 1`] = ` |
131 |
| -" |
132 |
| -export { createElement, Switch, StyleSheet } from 'react-native'; |
133 |
| -
|
134 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
135 |
| -
|
136 |
| -export { default as createElement } from 'react-native-web/dist/modules/createElement'; |
137 |
| -export { default as Switch } from 'react-native-web/dist/components/Switch'; |
138 |
| -export { default as StyleSheet } from 'react-native-web/dist/apis/StyleSheet'; |
139 |
| -" |
140 |
| -`; |
141 |
| - |
142 |
| -exports[`13. Rewrite react-native paths for react-native-web 1`] = ` |
143 |
| -" |
144 |
| -export { InvalidThing, TouchableOpacity } from 'react-native'; |
145 |
| -
|
146 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
147 |
| -
|
148 |
| -export { InvalidThing } from 'react-native-web'; |
149 |
| -export { default as TouchableOpacity } from 'react-native-web/dist/components/Touchable/TouchableOpacity'; |
150 |
| -" |
151 |
| -`; |
152 |
| - |
153 |
| -exports[`14. Rewrite react-native paths for react-native-web 1`] = ` |
154 |
| -" |
155 |
| -export { default as RNW } from 'react-native'; |
156 |
| -
|
157 |
| - ↓ ↓ ↓ ↓ ↓ ↓ |
158 | 88 |
|
159 |
| -export { default as RNW } from 'react-native-web'; |
| 89 | +const processColor = require('react-native-web/dist/modules/processColor'); |
160 | 90 | "
|
161 | 91 | `;
|
0 commit comments