mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
Misc dependency updates
This commit is contained in:
+12
-6
@@ -98,7 +98,8 @@ const View = require('react-native-web/dist/exports/View').default;
|
||||
|
||||
const StyleSheet = require('react-native-web/dist/exports/StyleSheet').default;
|
||||
|
||||
const TouchableOpacity = require('react-native-web/dist/exports/TouchableOpacity').default;
|
||||
const TouchableOpacity =
|
||||
require('react-native-web/dist/exports/TouchableOpacity').default;
|
||||
|
||||
|
||||
`;
|
||||
@@ -115,9 +116,11 @@ const ReactNative = require('react-native-web/dist/cjs/index');
|
||||
|
||||
const View = require('react-native-web/dist/cjs/exports/View').default;
|
||||
|
||||
const StyleSheet = require('react-native-web/dist/cjs/exports/StyleSheet').default;
|
||||
const StyleSheet =
|
||||
require('react-native-web/dist/cjs/exports/StyleSheet').default;
|
||||
|
||||
const TouchableOpacity = require('react-native-web/dist/cjs/exports/TouchableOpacity').default;
|
||||
const TouchableOpacity =
|
||||
require('react-native-web/dist/cjs/exports/TouchableOpacity').default;
|
||||
|
||||
|
||||
`;
|
||||
@@ -132,15 +135,18 @@ const { StyleSheet, View, TouchableOpacity, processColor } = require('react-nati
|
||||
|
||||
const ReactNative = require('react-native-web/dist/index');
|
||||
|
||||
const unstable_createElement = require('react-native-web/dist/exports/createElement').default;
|
||||
const unstable_createElement =
|
||||
require('react-native-web/dist/exports/createElement').default;
|
||||
|
||||
const StyleSheet = require('react-native-web/dist/exports/StyleSheet').default;
|
||||
|
||||
const View = require('react-native-web/dist/exports/View').default;
|
||||
|
||||
const TouchableOpacity = require('react-native-web/dist/exports/TouchableOpacity').default;
|
||||
const TouchableOpacity =
|
||||
require('react-native-web/dist/exports/TouchableOpacity').default;
|
||||
|
||||
const processColor = require('react-native-web/dist/exports/processColor').default;
|
||||
const processColor =
|
||||
require('react-native-web/dist/exports/processColor').default;
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
// @flow
|
||||
|
||||
const NS_PER_MS = 1e6;
|
||||
const MS_PER_S = 1e3;
|
||||
|
||||
// Returns a high resolution time (if possible) in milliseconds
|
||||
export function now(): number {
|
||||
if (window && window.performance) {
|
||||
return window.performance.now();
|
||||
} else if (process && process.hrtime) {
|
||||
const [seconds, nanoseconds] = process.hrtime();
|
||||
const secInMS = seconds * MS_PER_S;
|
||||
const nSecInMS = nanoseconds / NS_PER_MS;
|
||||
return secInMS + nSecInMS;
|
||||
} else {
|
||||
return Date.now();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-plugin-react-native-web": "0.18.4",
|
||||
"next": "^12.1.0",
|
||||
"next": "^12.2.0",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-native-web": "0.18.4"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.6",
|
||||
"create-react-class": "^15.7.0",
|
||||
"fbjs": "^3.0.0",
|
||||
"fbjs": "^3.0.4",
|
||||
"inline-style-prefixer": "^6.0.1",
|
||||
"normalize-css-color": "^1.0.2",
|
||||
"postcss-value-parser": "^4.2.0",
|
||||
|
||||
Reference in New Issue
Block a user