Skip to content

Commit

Permalink
Compatibility with react-native-web 0.11 (#2453)
Browse files Browse the repository at this point in the history
* Change react-native default import for compatibility with react-native-web 0.11

* minimal solution for RNW compatibility
  • Loading branch information
MrLoh authored and quantizor committed May 11, 2019
1 parent 4115a1f commit 75aa1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/styled-components/src/native/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

/* eslint-disable import/no-unresolved */
import reactNative from 'react-native';
import reactNative, { StyleSheet } from 'react-native';

import _InlineStyle from '../models/InlineStyle';
import _StyledNativeComponent from '../models/StyledNativeComponent';
Expand All @@ -14,7 +14,7 @@ import isStyledComponent from '../utils/isStyledComponent';

import type { Target } from '../types';

const InlineStyle = _InlineStyle(reactNative.StyleSheet);
const InlineStyle = _InlineStyle(StyleSheet);
const StyledNativeComponent = _StyledNativeComponent(InlineStyle);
const styled = (tag: Target) => constructWithOptions(StyledNativeComponent, tag);

Expand Down

0 comments on commit 75aa1b6

Please sign in to comment.