Skip to content

Commit

Permalink
v2.1.4 #202 Does not work on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
co2-git committed Feb 27, 2017
1 parent 6e8e75f commit aff554c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ reactors change log

# Versions

## v2.1.4 #202 Does not work on safari

## v2.1.3

- Omit style on View if scrollable since style is passed down to container style
Expand Down
6 changes: 5 additions & 1 deletion app/API/Core/guessPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
/* globals process window */

export default function guessPlatform(): $ReactorsPlatform {
if (typeof window !== 'undefined' && window.DOMError) {
if (
typeof window !== 'undefined' &&
typeof window.document !== 'undefined' &&
window.document.body
) {
if (window.process) {
return 'desktop';
}
Expand Down
2 changes: 1 addition & 1 deletion app/API/Core/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Accessibility from '../Accessibility';
import Declarations from '../StyleSheet/Declarations';
import Gesture from '../Gesture';

export default function props(defaultProps: Object) {
export default function makeReactorsProps(defaultProps: Object) {
const reactorsProps = {...defaultProps};

// Styles
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactors",
"version": "2.1.3",
"version": "2.1.4",
"description": "View components and APIs that work web, mobile and desktop!",
"main": "dist/index.js",
"keywords": [
Expand Down Expand Up @@ -33,7 +33,7 @@
"flow": "flow",
"prepush": "npm run eslint && npm test",
"push": "npm run babel && npm run prepush && npm publish",
"test": "jest --colors --debug --notify --verbose"
"test": "jest --colors --notify --verbose"
},
"author": {
"name": "francois",
Expand Down

0 comments on commit aff554c

Please sign in to comment.