Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
rayandrew committed Jul 11, 2018
1 parent 1c019bc commit 3ade918
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/modal-enhance-example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Modal from 'modal-enhanced-react-native-web';

import styles from './styles';

Modal.setAppElement('#root');

export default class App extends Component {
state = {
visibleModal: null,
Expand Down
2 changes: 1 addition & 1 deletion packages/modal-enhanced-react-native-web/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
["babel-plugin-transform-class-properties", {
"loose": true
}],
"babel-plugin-transform-decorators-legacy", ["transform-object-rest-spread", {
["transform-object-rest-spread", {
"useBuiltIns": true
}],
["transform-react-remove-prop-types", {
Expand Down
3 changes: 1 addition & 2 deletions packages/modal-enhanced-react-native-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"babel-plugin-add-module-exports": "next",
"babel-plugin-module-resolver": "^3.1.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"babel-preset-env": "^1.7.0",
Expand All @@ -52,4 +51,4 @@
"react-dom": "16.x.x",
"react-native-web": "0.7.x"
}
}
}

0 comments on commit 3ade918

Please sign in to comment.