fix: use actual react-native instead of homegrown mocks (#36)

<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

This actually uncovered some bugs, like lack of `onDoublePress` (lol XD) and enabled us to have better snapshots for deep rendering.

### Test plan

no new tests
This commit is contained in:
Michał Pierzchała
2018-10-16 18:51:01 +02:00
committed by GitHub
parent 07d3be1c51
commit 03e2c4b0f2
14 changed files with 1882 additions and 138 deletions
+6 -2
View File
@@ -21,8 +21,9 @@
"jest": "^23.6.0",
"metro-react-native-babel-preset": "^0.48.0",
"pretty-format": "^23.6.0",
"react": "^16.5.2",
"react-test-renderer": "^16.5.2",
"react": "16.6.0-alpha.8af6728",
"react-native": "^0.57.3",
"react-test-renderer": "16.6.0-alpha.8af6728",
"typescript": "^3.1.1"
},
"peerDependencies": {
@@ -35,5 +36,8 @@
"flow-check": "flow check",
"typescript-check": "tsc --noEmit --skipLibCheck --jsx react ./typings/__tests__/*",
"lint": "eslint src --cache"
},
"jest": {
"preset": "react-native"
}
}