Repository: parse-community/Parse-SDK-JS
Pull request #440 (2017-06-05 00:05:22)

Addresses filename change in react-native library
Addressing https://github.com/facebook/react-native/commit/cf1bc8d6443432ba24efa17cd15ba73072fad193

codecov[bot]: # [Codecov](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=h1) Report
> Merging [#440](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=desc) into [master](https://codecov.io/gh/parse-community/Parse-SDK-JS/commit/05ba96379a5bc648368b7a0df7e6ce9d690ad002?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440/graphs/tree.svg?token=8nCENM0QHj&height=150&src=pr&width=650)](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master     #440   +/-   ##
=======================================
  Coverage   84.49%   84.49%           
=======================================
  Files          46       46           
  Lines        3696     3696           
  Branches      846      846           
=======================================
  Hits         3123     3123           
  Misses        573      573
```


| [Impacted Files](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [src/StorageController.react-native.js](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=tree#diff-c3JjL1N0b3JhZ2VDb250cm9sbGVyLnJlYWN0LW5hdGl2ZS5qcw==) | `85.71% <ø> (ø)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=footer). Last update [05ba963...426721e](https://codecov.io/gh/parse-community/Parse-SDK-JS/pull/440?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

flovilmart: Let's merge that, I like how you updated the README as well

Patch:
diff --git a/README.md b/README.md
index b8cc8d5..268dd44 100644
--- a/README.md
+++ b/README.md
@@ -34,6 +34,8 @@ For React Native applications, include `'parse/react-native'`:
 var Parse = require('parse/react-native');
 ```
 
+> As of `v1.9.3`, Parse-SDK-JS supports React Native 0.43+. Please use `v1.9.2` for previous versions of React Native.
+
 ## License
 
 ```
@@ -41,11 +43,11 @@ Copyright (c) 2015-present, Parse, LLC.
 All rights reserved.
 
 This source code is licensed under the BSD-style license found in the
-LICENSE file in the root directory of this source tree. An additional grant 
+LICENSE file in the root directory of this source tree. An additional grant
 of patent rights can be found in the PATENTS file in the same directory.
 ```
 
-As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code. 
+As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.
 
  [build-status-svg]: https://travis-ci.org/parse-community/Parse-SDK-JS.svg?branch=master
  [build-status-link]: https://travis-ci.org/parse-community/Parse-SDK-JS
diff --git a/src/StorageController.react-native.js b/src/StorageController.react-native.js
index 43e91a6..e13de1a 100644
--- a/src/StorageController.react-native.js
+++ b/src/StorageController.react-native.js
@@ -11,7 +11,7 @@
 
 import ParsePromise from './ParsePromise';
 // RN packager nonsense
-import { AsyncStorage } from 'react-native/Libraries/react-native/react-native.js';
+import { AsyncStorage } from 'react-native/Libraries/react-native/react-native-implementation';
 
 var StorageController = {
   async: 1,


Test patch:
diff --git a/src/__tests__/Storage-test.js b/src/__tests__/Storage-test.js
index 70ac9fb..76df4db 100644
--- a/src/__tests__/Storage-test.js
+++ b/src/__tests__/Storage-test.js
@@ -29,7 +29,7 @@ var mockRNStorageInterface = {
   },
 };
 
-jest.mock('react-native/Libraries/react-native/react-native.js', () => {
+jest.mock('react-native/Libraries/react-native/react-native-implementation', () => {
   return {AsyncStorage: mockRNStorageInterface};
 }, {virtual: true});