Skip to content

Commit

Permalink
chore: upgrade expo
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jul 18, 2017
1 parent d624871 commit 055bbbb
Show file tree
Hide file tree
Showing 12 changed files with 1,356 additions and 1,335 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/flow_typed/
node_modules/
flow-typed/
7 changes: 3 additions & 4 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
+.*/node_modules/react-dom/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
Expand Down Expand Up @@ -52,12 +51,12 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true

[version]
^0.38.0
^0.45.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Container component responsible for managing tab transitions.

- `navigationState` - the current navigation state
- `onRequestChangeTab` - callback for when the current tab changes, should do the `setState`
- `onChangePosition` - callback called with position value as it changes (e.g. - on swipe or tab change), avoid doing anything expensive here
- `onPositionChange` - callback called with position value as it changes (e.g. - on swipe or tab change), avoid doing anything expensive here
- `canJumpToTab` - optional callback which accepts a route, and returns a boolean indicating whether jumping to the tab is allowed
- `lazy` - whether to load tabs lazily when you start switching
- `initialLayout` - optional object containing the initial `height` and `width`, can be passed to prevent the one frame delay in rendering
Expand Down
4 changes: 4 additions & 0 deletions __setup__/enzyme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme/build/adapters/ReactSixteenAdapter';

configure({ adapter: new Adapter() });
8 changes: 1 addition & 7 deletions example/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"plugins": [
["module-resolver", {
"alias": {
"react-native-tab-view": "..",
"@expo/vector-icons/lib/create-icon-set": "react-native-vector-icons/lib/create-icon-set",
"@expo/vector-icons/lib/icon-button": "react-native-vector-icons/lib/icon-button",
"@expo/vector-icons/lib/create-icon-set-from-fontello": "react-native-vector-icons/lib/create-icon-set-from-fontello",
"@expo/vector-icons/lib/create-icon-set-from-icomoon": "react-native-vector-icons/lib/create-icon-set-from-icomoon",
"@expo/vector-icons/lib/icon-button": "react-native-vector-icons/lib/icon-button",
"@expo/vector-icons/glyphmaps": "react-native-vector-icons/glyphmaps"
"react-native-tab-view": "../src"
}
}]
]
Expand Down
2 changes: 1 addition & 1 deletion example/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": '../.eslintrc',

"settings": {
"import/core-modules": [ "react-native-tab-view", "react-native-tab-view/types" ]
"import/core-modules": [ "expo", "react-native-tab-view", "react-native-tab-view/types" ]
},

"rules": {
Expand Down
23 changes: 23 additions & 0 deletions example/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"expo": {
"name": "React Native Tab View Demos",
"description": "Demonstrates the various capabilities of react-native-tab-view: https://github.com/react-native-community/react-native-tab-view",
"slug": "react-native-tab-view-demos",
"sdkVersion": "18.0.0",
"version": "1.0.0",
"orientation": "portrait",
"primaryColor": "#2196f3",
"icon": "https://s3.amazonaws.com/exp-us-standard/icons/react-native-tab-view-icon.png",
"loading": {
"icon": "https://s3.amazonaws.com/exp-us-standard/icons/react-native-tab-view-icon.png",
"hideExponentText": false
},
"packagerOpts": {
"assetExts": [
"ttf"
],
"config": "./rn-cli.config.js",
"projectRoots": ""
}
}
}
21 changes: 0 additions & 21 deletions example/exp.json

This file was deleted.

10 changes: 5 additions & 5 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"@expo/vector-icons": "^4.0.0",
"@expo/vector-icons": "^5.0.0",
"escape-string-regexp": "^1.0.5",
"expo": "~16.0.0",
"expo": "~18.0.0",
"prop-types": "^15.5.8",
"react": "16.0.0-alpha.6",
"react-native": "git+https://github.com/expo/react-native.git#sdk-16.0.0"
"react": "16.0.0-alpha.12",
"react-native": "https://github.com/expo/react-native/archive/sdk-18.0.1.tar.gz"
},
"devDependencies": {
"babel-plugin-module-resolver": "^2.7.0",
"babel-preset-expo": "^1.0.0"
"babel-preset-expo": "^1.0.1"
},
"main": "main.js"
}
Loading

0 comments on commit 055bbbb

Please sign in to comment.