Skip to content

Commit 040e8c1

Browse files
authored
Fix react-native build (#1094)
* Fix react-native build * Upgrade mongodb version in Travis to me compliant with parse server * crypto-js alternative for react-native * fix package version
1 parent cb6bcde commit 040e8c1

File tree

6 files changed

+503
-368
lines changed

6 files changed

+503
-368
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
include:
1616
- stage: test
1717
env:
18-
- MONGODB_VERSION=3.2.13
18+
- MONGODB_VERSION=3.6.9
1919
before_script:
2020
- npm install -g mongodb-runner
2121
- mongodb-runner start

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ For server-side applications or Node.js command line tools, include `'parse/node
4949
const Parse = require('parse/node');
5050
```
5151

52-
For React Native applications, include `'parse/react-native'`:
52+
For React Native applications, include `'parse/react-native.js'`:
5353
```js
5454
// In a React Native application
55-
const Parse = require('parse/react-native');
55+
const Parse = require('parse/react-native.js');
5656

5757
// On React Native >= 0.50 and Parse >= 1.11.0, set the Async
5858
const AsyncStorage = require('react-native').AsyncStorage;

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var PRESETS = {
2929
'node': [["@babel/preset-env", {
3030
"targets": { "node": "8" }
3131
}]],
32-
'react-native': ['@babel/preset-react'],
32+
'react-native': ['module:metro-react-native-babel-preset'],
3333
};
3434
var PLUGINS = {
3535
'browser': [transformRuntime, '@babel/plugin-transform-flow-comments', '@babel/plugin-proposal-class-properties', 'inline-package-json',

0 commit comments

Comments
 (0)