react-native/Libraries/NavigationExperimental
Sebastian Markbage a80dd9a92a Fix up this pattern var React = require('react-native');
Summary:First I searched for special cases that destructor PropTypes:

```
(?s)React\s*=\s*require\('react\-native'\).*(Children|PropTypes)[^\{\}]*\}\s*=\s*React;
```

I split them up manually.

Then I replaced the React = require('react-native') + destructuring pattern...

```
(?s)(const|var)\s+React\s*=\s*require\('react\-native'\)(.*[^\{\}]*\}\s*=\s*)React;
```

...with...

```
$1 React = require('react');
$1 ReactNative = require('react-native')$2ReactNative;
```

I used lint to figure out if I left some unnecessary imports.

Finally I grepped for just

```
React\s*=\s*require\('react\-native'\)
```

to catch any remaining patterns.

Also, `} = React.NativeModules` -> `} = ReactNative.NativeModules`.

Reviewed By: spicyj

Differential Revision: D3158991

fb-gh-sync-id: f97e8e921e193d6ea1a49d8d1bf3f09be7bed5c3
fbshipit-source-id: f97e8e921e193d6ea1a49d8d1bf3f09be7bed5c3
2016-04-08 20:37:22 -07:00
..
Reducer Move scenes reducer logic into a separate module. 2016-03-21 11:14:22 -07:00
__mocks__ Clean up APIs. 2016-03-04 14:57:31 -08:00
__tests__ Fix mocks in NavigationExperimental 2016-02-24 05:11:28 -08:00
NavigationAbstractPanResponder.js Simplify <NavigationCard />. 2016-03-15 15:59:26 -07:00
NavigationAnimatedView.js Fix up this pattern var React = require('react-native'); 2016-04-08 20:37:22 -07:00
NavigationContainer.js Update FBSource to use Flow 0.22 2016-03-08 12:39:29 -08:00
NavigationExperimental.js Support animation and gesture for Pager. 2016-03-23 12:51:00 -07:00
NavigationPropTypes.js Fix up this pattern var React = require('react-native'); 2016-04-08 20:37:22 -07:00
NavigationRootContainer.js Adding emulator, simulator UIExplorer example across docs 2016-04-04 06:05:23 -07:00
NavigationStateUtils.js Clean up APIs. 2016-03-04 14:57:31 -08:00
NavigationTypeDefinition.js move `propTypes`, `defaultProps`, and `childContextTypes` into class. 2016-03-28 16:48:27 -07:00
NavigationView.js Fix up this pattern var React = require('react-native'); 2016-04-08 20:37:22 -07:00