Files
DefinitelyTyped/types
James Ide 82a2833b4e [react-native] Fix declarations related to prop types e.g. requireNativeComponent (#28871)
Fixes `requireNativeComponent`, which was conflating the type of PropTypes maps with the type of prop maps. That is, these are not of the same type: `{ x: PropTypes.string }` and `{ x: "hello" }`.

Also fixes the type of the `ViewPropTypes` object. It is a map of PropTypes, not a single PropType. Additionally, made the types of the other PropType exports more precise instead of `PropType.any`.

Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: **N/A** -- these are fixes
- [x] Increase the version number in the header if appropriate. **N/A**
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`. **N/A**
2018-09-14 09:10:16 -07:00
..
2018-09-06 23:53:18 +02:00
2018-09-10 16:10:14 -07:00
2018-09-10 15:23:31 -07:00
2018-08-31 22:41:37 +02:00
2018-09-01 17:20:40 +02:00
2018-09-01 12:57:24 +02:00
2018-08-31 18:08:42 +02:00
2018-08-31 17:20:01 +02:00
2018-09-05 12:14:55 +01:00
2018-09-07 13:22:49 +08:00
2018-09-05 15:17:56 -07:00
2018-09-02 20:03:03 +08:00
2018-09-05 23:25:24 +05:30
2018-09-07 16:09:20 +08:00
2018-09-04 02:41:25 +02:00
2018-09-03 20:40:41 -04:00
2018-09-14 09:04:22 -07:00
2018-09-04 02:48:12 -05:00
2018-09-01 12:38:17 +03:00
2018-09-10 18:36:01 -07:00
2018-09-05 17:17:50 -07:00
2018-09-13 21:11:28 -04:00
2018-09-07 13:13:28 -04:00
2018-09-10 22:31:21 +01:00
2018-09-02 09:32:50 +09:00
2018-08-31 16:25:54 -04:00
2018-09-03 10:19:36 +02:00
2018-09-04 10:32:11 +02:00
2018-08-31 14:04:07 -04:00
2018-09-01 09:37:35 -03:00
2018-09-06 13:39:45 +01:00
2018-09-07 13:07:19 -04:00
2018-09-11 08:26:48 -07:00