Skip to content

Commit

Permalink
CLose jaredpalmer#421. Remove @types/react-native. Sorry kids!
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Feb 10, 2018
1 parent 82cd013 commit c8de953
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"@types/prop-types": "15.5.1",
"@types/react": "16.0.28",
"@types/react-dom": "^16.0.3",
"@types/react-native": "^0.52.8",
"@types/react-test-renderer": "15.5.2",
"@types/warning": "^3.0.0",
"all-contributors-cli": "^4.4.0",
Expand Down
10 changes: 3 additions & 7 deletions src/formik.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as PropTypes from 'prop-types';
import * as React from 'react';
import isEqual from 'lodash.isequal';
import warning from 'warning';
import { GestureResponderEvent } from 'react-native';

import {
isFunction,
isPromise,
Expand Down Expand Up @@ -158,9 +158,7 @@ export interface FormikActions<Values> {
*/
export interface FormikHandlers {
/** Form submit handler */
handleSubmit: (
e: React.FormEvent<HTMLFormElement> | GestureResponderEvent
) => void;
handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
/** Classic React change handler, keyed by input name */
handleChange: (e: React.ChangeEvent<any>) => void;
/** Mark input as touched */
Expand Down Expand Up @@ -464,9 +462,7 @@ export class Formik<ExtraProps = {}, Values = object> extends React.Component<
);
};

handleSubmit = (
e: React.FormEvent<HTMLFormElement> | GestureResponderEvent
) => {
handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
this.submitForm();
};
Expand Down
15 changes: 1 addition & 14 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,7 @@
"strict": true,
"strictNullChecks": true,
"stripInternal": true,
"target": "es5",
"types": [
"react",
"react-native",
"jest",
"prop-types",
"enzyme",
"enzyme-adapter-react-16",
"lodash.clonedeep",
"lodash.isequal",
"lodash.topath",
"warning",
"react-test-renderer"
]
"target": "es5"
},
"include": ["src", "./typings.d.ts"],
"exclude": ["node_modules", "dist"]
Expand Down
6 changes: 0 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
"@types/node" "*"
"@types/react" "*"

"@types/react-native@^0.52.8":
version "0.52.8"
resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.52.8.tgz#dd5aa7c4eb944d7c0b2b249a2bb811aa119f49c6"
dependencies:
"@types/react" "*"

"@types/[email protected]":
version "15.5.2"
resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-15.5.2.tgz#422a51a3a1750616f8ca5440d3591ab381d7f1e1"
Expand Down

0 comments on commit c8de953

Please sign in to comment.