@appandflow/touchable
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "@appandflow/touchable", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"main": "./src/Touchable.js", | ||
@@ -32,3 +32,3 @@ "private": false, | ||
"jest": { | ||
"preset": "jest-expo", | ||
"preset": "react-native", | ||
"modulePathIgnorePatterns": [ | ||
@@ -42,21 +42,21 @@ "example" | ||
"precommit": "lint-staged", | ||
"test": "jest" | ||
"test": "jest", | ||
"ci": "yarn lint && yarn flow && yarn test" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-react-native": "^1.9.1", | ||
"chalk": "^1.1.3", | ||
"eslint": "^3.19.0", | ||
"eslint-config-equimper": "^1.6.4", | ||
"eslint-config-prettier": "^2.0.0", | ||
"flow-bin": "0.40.0", | ||
"glob": "^7.1.1", | ||
"husky": "^0.13.3", | ||
"babel-preset-react-native": "^3.0.1", | ||
"chalk": "^2.1.0", | ||
"eslint": "^4.5.0", | ||
"eslint-config-anf": "^0.5.2", | ||
"flow-bin": "0.53.1", | ||
"glob": "^7.1.2", | ||
"husky": "^0.14.3", | ||
"jest": "^20.0.4", | ||
"jest-expo": "^1.0.1", | ||
"lint-staged": "^3.4.1", | ||
"prettier": "^1.3.1", | ||
"react": "16.0.0-alpha.6", | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-16.0.0.tar.gz", | ||
"react-test-renderer": "^15.5.4" | ||
"jest-expo": "^20.0.0", | ||
"lint-staged": "^4.0.3", | ||
"prettier": "^1.5.3", | ||
"react": "16.0.0-beta.5", | ||
"react-native": "janicduplessis/react-native", | ||
"react-test-renderer": "^16.0.0-beta.5" | ||
} | ||
} |
// @flow | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { Platform, View } from 'react-native'; | ||
@@ -9,2 +9,5 @@ import renderer from 'react-test-renderer'; | ||
// TODO: remove this when Blob is properly mocked. | ||
jest.mock('Blob', () => ({})).mock('URL', () => ({})); | ||
const FEEDBACKS = ['opacity', 'highlight', 'none']; | ||
@@ -11,0 +14,0 @@ |
@@ -70,3 +70,3 @@ // @flow | ||
export default class Touchable extends Component { | ||
export default class Touchable extends Component<Props> { | ||
static defaultProps = { | ||
@@ -78,3 +78,2 @@ native: true, | ||
props: Props; | ||
render() { | ||
@@ -97,2 +96,3 @@ const { | ||
<TouchableNativeFeedback | ||
// eslint-disable-next-line babel/new-cap | ||
background={TouchableNativeFeedback.Ripple(tintColor, overflow)} | ||
@@ -126,3 +126,5 @@ disabled={disabled} | ||
> | ||
<View style={inner}>{children}</View> | ||
<View style={inner}> | ||
{children} | ||
</View> | ||
</TouchableHighlight> | ||
@@ -129,0 +131,0 @@ ); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17638
14
187