Robbie McCorkell
181b482fea
make accessibility states an array
2018-11-19 13:41:26 +00:00
Nathan Shively-Sanders
1d4bb05c42
Organise imports (closer to alphabetical)
2018-11-15 14:19:34 -08:00
Nathan Shively-Sanders
3e5bfdadac
Fix react-native on TS 3.1+
...
Fixes #29265 , based on comment
https://github.com/Microsoft/TypeScript/issues/27421#issuecomment-433249163
2018-11-15 14:17:07 -08:00
Spencer Kingman
0d01e43497
Update index.d.ts
...
The `keyboard` animation type is added here. This is a valid type as described here: https://medium.com/@philipshen13/react-native-layoutanimation-267489b67a20 (check the section `LayoutAnimation.types`)
2018-11-14 10:16:53 -05:00
Mickael Dumand
9e503beb07
[react-native] export CompositeAnimation
2018-11-12 15:45:47 +01:00
Ryan Nickel
0d93cb3f90
[@types/react-native] Add missing scrollEnabled property ( #29787 )
...
* Add missing scrollEnabled property
* Fix for tslint
2018-10-17 11:48:06 -07:00
Andy
b7551a869d
Remove "dom" lib from packages using react-native ( #29766 )
2018-10-16 10:06:18 -07:00
Andy
7c6c96516e
More fixes from dtslint improvements ( #29765 )
2018-10-15 17:35:36 -07:00
Kacper Wiszczuk
e9472683cb
React native/ flatlist and sectionlist should have nullable types ( #29686 )
2018-10-12 09:03:30 -07:00
Kacper Wiszczuk
2f80e7c890
React-native Add new accessibility props
2018-10-11 23:39:04 +02:00
Joe Tanner
aef71e1419
Fix typo in SafeAreaViewComponent docs ( #29548 )
2018-10-08 14:28:04 -07:00
Kacper Wiszczuk
fc91b889a2
FIX Update FlatList and SectionList props ( #29543 )
2018-10-08 11:48:54 -07:00
Thomas Hauglid
d63c0ae3bc
SwitchPropsIOS: Added deprecated to thumbTintColor tintColor. ( #29537 )
...
SwitchProps: added thumbColor
2018-10-08 08:54:39 -07:00
Kyle Roach
d1d7068302
feat(react-native): Add trackColor to SwitchProps ( #29477 )
...
Closes #29466
2018-10-05 11:26:49 -07:00
Caleb Clarke
f383f92001
react-native - Added allowFileAccess property for Android WebView ( #29331 )
...
* Added allowFileAccess property for Android WebView
* Updated version number (allowFileAccess is a new property)
* Revert "Updated version number (allowFileAccess is a new property)"
This reverts commit 14077bf1e92e7b3be2e4d165f32ee1f0e763435f.
2018-10-01 21:00:59 -07:00
Tommy Nguyen
d11184a207
react-native: Added useWebKit property to WebViewProps.
2018-09-25 10:10:12 +02:00
Kacper Wiszczuk
9e9bbefada
Changed react-native event handler types
2018-09-22 12:49:14 +02:00
Eloy Durán
76ef26bef4
Merge pull request #29020 from Skn0tt/master
...
react-native: NetInfo.isConnectionExpensive is a function
2018-09-19 23:45:45 +02:00
Simon Knott
19e92d0bd8
Add Simon Knott to Contributors list
2018-09-19 17:46:12 +02:00
Simon Knott
63b42fdb9e
isConnectionExpensive is Function
2018-09-19 17:42:29 +02:00
Eloy Durán
27bcb5ebae
Merge pull request #28978 from NitroGhost/patch-3
...
react-native: added missing canUseNativeForeground for TouchableNativeFeedback
2018-09-18 21:25:38 +02:00
Ben Wildeman
9262c861b5
added missing canUseNativeForeground for TouchableNativeFeedback
2018-09-18 12:20:54 +01:00
James Ide
954567e501
[react-native] Account for nativeOnly props in requireNativeComponent
...
Adjusted the prop types of the returned native component class so that (a) the `nativeOnly` set of props adds to the prop types and (b) not all the props from the JS component are required (using `Partial`).
2018-09-17 21:19:12 -07:00
Eloy Durán
38d022f09e
Merge pull request #28873 from ide/rn-style-types
...
[react-native] Declare StyleSheet.setStyleAttributePreprocessor
2018-09-17 14:45:19 +02:00
Eloy Durán
a44effb209
Merge pull request #28872 from ide/rn-devtools-types
...
[react-native] Add types for devtools modules
2018-09-17 14:43:49 +02:00
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
James Ide
3c4f383e95
[react-native] Add types for devtools modules
...
Adds type declarations for `parseErrorStack` and `symbolicateStackTrace`, which are used to process caught errors.
2018-09-13 17:56:35 -07:00
James Ide
2543f375d8
[react-native] Declare StyleSheet.setStyleAttributePreprocessor
...
Added the type declaration and copied the documentation for this static function. The type of the `process` parameter should be `(nextProp: unknown) => unknown` but I stuck with `any` to preserve 2.x compatibility.
2018-09-13 17:47:33 -07:00
iyegoroff
7f0cd433de
Update animated.tsx
2018-09-08 18:30:18 +03:00
iyegoroff
4e5b1485d6
added Animated.event test
2018-09-08 18:24:12 +03:00
iyegoroff
f72507f3c5
fixed Animated.EventConfig
2018-09-08 18:02:19 +03:00
Christoph Jerolimov
e2fe25b513
[react-native] Improve WebView onShouldStartLoadWithRequest event
2018-09-03 23:22:38 +02:00
Tommy Nguyen
49362d8e02
React Native: Tightened type of WebViewUriSource.method.
2018-09-03 15:46:25 +02:00
Eloy Durán
c9489b79d3
Merge pull request #28376 from pavsidhu/patch-1
...
Add contextMenuHidden to TextInput
2018-08-28 17:34:31 +02:00
Pav Sidhu
fbcb8526ec
Update index.tsx
2018-08-28 00:40:30 +01:00
Eloy Durán
c75c51c0e7
Merge pull request #28392 from danilobuerger/patch-4
...
[react-native] SectionList is a VirtualizedList
2018-08-26 17:53:38 +02:00
Danilo Bürger
15f698578b
[react-native] SectionList is a VirtualizedList
...
See https://github.com/facebook/react-native/blob/master/Libraries/Lists/SectionList.js#L187
```
export type Props<SectionT> = RequiredProps<SectionT> &
OptionalProps<SectionT> &
VirtualizedSectionListProps<SectionT>;
```
See https://github.com/facebook/react-native/blob/master/Libraries/Lists/VirtualizedSectionList.js#L119
```
export type Props<SectionT> = RequiredProps<SectionT> &
OptionalProps<SectionT> &
VirtualizedListProps;
```
See https://github.com/facebook/react-native/blob/master/Libraries/Lists/VirtualizedList.js#L54
```
// TODO: Conflicts with the optional `renderItem` in
// `VirtualizedSectionList`'s props.
renderItem: $FlowFixMe<renderItemType>,
```
2018-08-26 15:32:37 +02:00
Danilo Bürger
98fd1ebaaf
[react-native] FormData is a class
...
See https://github.com/facebook/react-native/blob/master/Libraries/Network/FormData.js#L49
2018-08-25 21:50:28 +02:00
Pav Sidhu
20c03ac0dd
Fix whitespace
2018-08-25 15:25:06 +01:00
Pav Sidhu
bdce3cdaae
Add contextMenuHidden to TextInput
2018-08-25 14:28:53 +01:00
Eloy Durán
efa449afcc
Merge pull request #28322 from hikouki/master
...
react-native: add nestedScrollEnabled props for andorid (RN0.56.0)
2018-08-24 11:58:53 +02:00
hikouki
59efb325e2
add nestedScrollEnabled props for andorid in react-native types.
2018-08-24 09:55:58 +09:00
Eloy Durán
812734a111
Merge pull request #28230 from mvdam/master
...
[react-native] Added 'mode' to TimePickerAndroidOpenOptions
2018-08-23 12:54:53 +02:00
Martin van Dam
66fe94c49c
Added test for newly added property 'mode' in TimePickerAndroidOpenOptions
2018-08-22 11:45:14 +02:00
Martin van Dam
3d143304e8
Added type definitions for 'mode' to TimePickerAndroidOpenOptions
2018-08-20 09:28:03 +02:00
Bruno Lemos
7be8646725
[react-native] Disable Style Props
2018-08-18 20:51:07 -03:00
Kyle Roach
a2fe5554f7
[react-native] Add hardwareAccelerated to Modal
2018-08-14 23:21:10 -04:00
Tommy Nguyen
ecba929771
Fixed definitions for react-native/BatchedBridge.
...
BatchedBridge (and MessageQueue) must be imported like this:
import BatchedBridge from "react-native/Libraries/BatchedBridge/BatchedBridge";
So we must use default export.
2018-08-14 17:47:27 +02:00
Eloy Durán
536d34cd8c
Merge pull request #27522 from VincentLanglet/patch-2
...
[React native] Add section in SectionListRenderItemInfo
2018-08-13 15:12:04 +02:00
Eloy Durán
01f7c09835
Merge pull request #28051 from iRoachie/alert-ios
...
(react-native) Add keyboardType to AlertIOS prompt
2018-08-13 15:07:58 +02:00