Skip to content

Commit

Permalink
[home] Remove the last Haste directives
Browse files Browse the repository at this point in the history
We don't intentionally use Haste anymore and changes to Metro removed support for `@providesModule` headers we were inadvertently using -- this commit removes Haste in lieu of paths.
  • Loading branch information
ide committed Oct 8, 2018
1 parent 6773901 commit 80f10cf
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion home/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'LegacyReact';
import './LegacyReact';

import Expo from 'expo';
import React from 'react';
Expand Down
3 changes: 0 additions & 3 deletions home/LegacyReact.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
* @providesModule LegacyReact
*/
import PropTypes from 'prop-types';
import React from 'react';

Expand Down
3 changes: 1 addition & 2 deletions home/api/ApiV2Client.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/**
* @providesModule ApiV2Client
* @flow
*/
'use strict';

import ApiV2HttpClient from 'ApiV2HttpClient';
import ApiV2HttpClient from './ApiV2HttpClient';

let _client: ?ApiV2HttpClient;

Expand Down
1 change: 0 additions & 1 deletion home/api/ApiV2Error.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* @providesModule ApiV2Error
* @flow
*/
'use strict';
Expand Down
3 changes: 1 addition & 2 deletions home/api/ApiV2HttpClient.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/**
* @providesModule ApiV2HttpClient
* @flow
*/
'use strict';

import { NativeModules, Platform } from 'react-native';
import querystring from 'querystring';

import ApiV2Error from 'ApiV2Error';
import ApiV2Error from './ApiV2Error';
import Config from './Config';

const { ExponentKernel } = NativeModules;
Expand Down
2 changes: 1 addition & 1 deletion home/api/Auth0Api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* @flow */
import ApiV2HttpClient from 'ApiV2HttpClient';
import ApiV2HttpClient from './ApiV2HttpClient';

const SignUpEndpoint = 'https://exp.host/--/api/v2/auth/createOrUpdateUser';
const SignOutEndpoint = 'https://exp.host/--/api/v2/auth/logoutAsync';
Expand Down
2 changes: 1 addition & 1 deletion home/api/__tests__/ApiV2Error-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ApiV2Error from 'ApiV2Error';
import ApiV2Error from '../ApiV2Error';

it(`works with instanceof`, () => {
let error = new ApiV2Error('Testing');
Expand Down
4 changes: 2 additions & 2 deletions home/api/__tests__/ApiV2HttpClient-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ApiV2HttpClient from 'ApiV2HttpClient';
import ApiV2Error from 'ApiV2Error';
import ApiV2HttpClient from '../ApiV2HttpClient';
import ApiV2Error from '../ApiV2Error';

jest.mock('react-native', () => {
const ReactNative = require.requireActual('react-native');
Expand Down
3 changes: 3 additions & 0 deletions home/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
checkAutomatically: "ON_LOAD",
fallbackToCacheTimeout: 0
},
packagerOpts: {
config: "rn-cli.config.js"
},
ios: {
supportsTablet: true,
bundleIdentifier: "host.exp.exponent",
Expand Down
1 change: 1 addition & 0 deletions home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"group": "client"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@expo/react-native-action-sheet": "^0.3.0",
"@expo/react-native-fade-in-image": "^1.1.1",
"@expo/react-native-navigator": "0.5.2",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,13 @@
pirates "^4.0.0"
source-map-support "^0.5.9"

"@babel/runtime@^7.0.0":
version "7.1.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.1.2.tgz#81c89935f4647706fc54541145e6b4ecfef4b8e3"
integrity sha512-Y3SCjmhSupzFB6wcv1KmmFucH6gDVnI30WjOcicV10ju0cZjak3Jcs67YLIXBrmZYw1xCrVeJPbycFwrqNyxpg==
dependencies:
regenerator-runtime "^0.12.0"

"@babel/template@^7.0.0", "@babel/template@^7.1.0", "@babel/template@^7.1.2":
version "7.1.2"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.1.2.tgz#090484a574fef5a2d2d7726a674eceda5c5b5644"
Expand Down Expand Up @@ -7662,6 +7669,11 @@ regenerator-runtime@^0.11.0:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==

regenerator-runtime@^0.12.0:
version "0.12.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de"
integrity sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==

regenerator-transform@^0.10.0:
version "0.10.1"
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd"
Expand Down

0 comments on commit 80f10cf

Please sign in to comment.