mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-31 17:53:50 +00:00
committed by
Nicolas Gallagher
parent
80a72c327c
commit
8c365d9892
@@ -1,9 +1,12 @@
|
||||
import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
|
||||
import { Dimensions, Platform } from 'react-native';
|
||||
|
||||
const baseFontSize = 14;
|
||||
const baseUnit = 1.3125;
|
||||
const { canUseDOM } = ExecutionEnvironment;
|
||||
const canUseDOM = !!(
|
||||
typeof window !== 'undefined' &&
|
||||
window.document &&
|
||||
window.document.createElement
|
||||
);
|
||||
|
||||
const createPlatformLength = (multiplier) =>
|
||||
Platform.select({
|
||||
|
||||
Reference in New Issue
Block a user