From 6a33367259cff0b2d0627512ccb205c9a797c903 Mon Sep 17 00:00:00 2001 From: Rahul Jiresal Date: Sun, 29 May 2016 09:56:14 -0700 Subject: [PATCH] Fix for upgrading to React Native 25 --- .gitignore | 2 ++ Overlay.ios.js | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ae2ca7f..03d76e1 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ DerivedData # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control # #Pods/ + +.DS_Store diff --git a/Overlay.ios.js b/Overlay.ios.js index 90ac256..9327fb8 100644 --- a/Overlay.ios.js +++ b/Overlay.ios.js @@ -5,13 +5,14 @@ 'use strict'; -var React = require('react-native'); +var ReactNative = require('react-native'); +var React = require('react'); + var { View, - PropTypes, StyleSheet, requireNativeComponent, -} = React; +} = ReactNative; type Props = { isVisible: boolean;