Commit Graph

171 Commits

Author SHA1 Message Date
Eloy Durán
9ae7e1a8f1 Merge pull request #20092 from fmmoret/patch-1
Fix types on LayoutAnimation
2017-09-28 12:53:42 +02:00
Eloy Durán
30c89b012e Merge pull request #20080 from ibratoev/ibratoev/react-native-cleanup
[react-native] Cleanup redundant type parameters
2017-09-28 12:51:57 +02:00
fmmoret
91d1850785 Fix types on LayoutAnimation
.easeInEaseOut, .linear, and .spring have LayoutAnimationConfigs bound already.
See https://github.com/facebook/react-native/blob/master/Libraries/LayoutAnimation/LayoutAnimation.js#L164
2017-09-27 19:06:29 -07:00
Simon Treny
edc8fad69e Add missing extractOffset() methods and Animated.ScrollView 2017-09-27 21:34:31 +02:00
Ivaylo Bratoev
da59c6f554
Cleanup redundant type parameters 2017-09-27 19:28:06 +03:00
Eloy Durán
040a0eb7c5 Merge pull request #19047 from dannycochran/patch-8
update react-native image source typing
2017-09-23 11:56:27 +02:00
Danny Cochran
3675e134d1 remove whitespace 2017-09-22 12:41:41 -07:00
Danny Cochran
6e13a53c16 define ImageRequireSource instead of using number 2017-09-21 13:23:11 -07:00
Fedor Nezhivoi
c06bd42bb5 Remove myself from list of maintainers 2017-09-18 15:40:56 +03:00
Eloy Durán
e4ce585bf2 Merge pull request #19809 from huhuanming/react-native
Timeout can be optional in setInterval & setTimeout
2017-09-17 23:35:55 +02:00
huhuanming
8232bb0afc Timeout can be optional in setInterval & setTimeout 2017-09-17 23:51:59 +08:00
Mathieu Dutour
d644aafab0 add specific RN console properties
add the following properties to the console global object
* console.disableYellowBox
* console.ignoredYellowBox
See http://facebook.github.io/react-native/releases/0.48/docs/debugging.html#warnings
2017-09-17 17:29:01 +02:00
abrahambotros
f56051d04b [react-native] Add VirtualizedList onLayout event data 2017-09-12 11:00:26 -07:00
Eloy Durán
ed00d63d7d Merge pull request #19686 from RhinobyteSoftware/ryant/master/react-native-onpress-signatures
react-native - Add event object method parameter to onPress signatures
2017-09-12 13:14:06 +02:00
Ryan Thomas
566bf1a85e react-native - Removed name from definitions by header 2017-09-12 06:11:18 -05:00
Ryan Thomas
d86b47c09e ReactNative OnPress Signatures - Updated the TextProperties onLongPress/onPress method signatures and the TouchableWithoutFeedbackProperties onLongPress/onPress/onPressIn/onPressOut method signatures to include the event object as a parameter 2017-09-11 19:09:56 -05:00
Andrew Goodale
c33eab35c0 Add issue link and fix Geolocation options type 2017-09-11 09:19:46 -04:00
Anton Semenov
4be47eb978 Fix excludeActivityTypes property of ShareActionSheetIOSOptions
This property casting as it is to iOS native UIActivityViewController, that has a property excludedActivityTypes, not  excludeActivityTypes
2017-09-10 21:00:37 +03:00
Andrew Goodale
693f8a4886 Declare timer functions in a separate file 2017-09-08 18:08:45 -04:00
Andrew Goodale
d5176877e2 Remove timer functions due to "error TS2383" 2017-09-08 09:50:34 -04:00
Andrew Goodale
745c8be65c Fix incorrect Geolocation callback error type 2017-09-07 17:34:36 -04:00
Andrew Goodale
e46f35cf97 Update declaraiton of GeolocationStatic 2017-09-07 16:45:30 -04:00
Andrew Goodale
514e8253d3 Add global declarations for RN polyfills 2017-09-07 15:43:02 -04:00
huhuanming
d0c49ce6e5 Add MaskedView 2017-09-02 23:48:32 +08:00
Andy
d74806eb3d Add lint disables for no-unnecessary-generics (#19508) 2017-09-01 08:34:37 -07:00
Sahin Vardar
be58e6ad16 Fixes #18734
* Altered typing of NativeModulesStatic to enable NativeModule modules of type any and typed native modules at the same time.
 * Added test case for typed and untyped native modules.
2017-08-29 20:30:01 +02:00
ahanriat
da7db43db1 Add Animated.loop typings 2017-08-24 17:47:06 +02:00
Andrew Goodale
35f284e256 Remove references to types from "dom" TS library 2017-08-23 13:57:32 -04:00
Eloy Durán
abbc84feee Merge pull request #19080 from iRoachie/rn
[rn] Fix redeclaration of global
2017-08-23 18:25:19 +02:00
Kyle Roach
75b8d8a4e7 [rn] Fix redeclaration of global 2017-08-23 10:57:15 -04:00
Andy
924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Marco Buono
28bedbce72 react-native: Add display style
It's available as of v0.43, see the following commit:

4d69f4b2d1
2017-08-18 20:07:41 -03:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Danny Cochran
15f1ae0ccb update react-native image source typing
When requiring in an image path (require('./path/to/image.png')), the require resolves to a number.

This number can be passed directly into the image source, e.g:

```javascript
const imageId = require('./path/to/image.png');
return <Image source={imageId} />;
```

I'm not sure if this has official documentation anywhere but this is how I've been rendering images for some time:

https://facebook.github.io/react-native/docs/image.html#source
2017-08-16 16:25:39 -07:00
Kyle Roach
7842fff1b2 [rn] Adds imageStyle prop to ImageBackground 2017-08-16 16:56:12 -04:00
Eloy Durán
cae4925e76 Merge pull request #18924 from mcousillas6/fix/flatListItemSeparator
[react-native] Added missing type cases for ItemSeparatorComponent on FlatList
2017-08-15 18:25:00 +02:00
mcousillas6
468ccddeac Changed typing to React.ComponentType 2017-08-15 08:59:40 -03:00
Eloy Durán
142a2fc41c Merge pull request #18922 from iRoachie/rn-share
[react-native] Make share options optional
2017-08-14 12:30:32 +02:00
mcousillas6
6f13f3dcba Added missing type cases for ItemSeparatorComponent on react-native FlatList 2017-08-13 19:56:02 -03:00
Kyle
a2ea48b650 [react-native] Make share options optional 2017-08-13 17:50:15 -04:00
Adrian Hall
229ef45a96 Addressed reviewer comments
* Set the version # Back
* Removed myself as a maintainer.
2017-08-11 17:11:16 -07:00
Adrian Hall
6dd5be7f3e Increment version # 2017-08-11 13:34:04 -07:00
Adrian Hall
a0e14262fd Fixed lint issues 2017-08-11 13:01:18 -07:00
Adrian Hall
25df9777a1 Added event listener modifications to Dimensions per latest spec. 2017-08-11 12:55:06 -07:00
Tommy Nguyen
534d133d8d fixup! Added definition for VirtualizedListProps.
Fixed inconsistent definitions.
2017-08-07 18:21:45 +02:00
Tommy Nguyen
f1f3e5e89d Added definition for VirtualizedListProps. 2017-08-07 16:56:41 +02:00
Sahin Vardar
03c324b1d0 Add typings for react-native-sensor-manager
* Added NativeModulesStatic interface which is used as a type for NativeModule var in react-native type definition.
  * Now you can argument NativeModule through augmenting NativeModuleStatic.
 * Added NativeModuleStatic augmentation for react-native-sensor-manager which adds the SensorManager to the NativeModules.
 * Augmented DeviceEventEmitterStatic which adds type informations to 'addListener' function which works in conjunction with SensorManager.
2017-08-05 22:59:01 +02:00
Diogo do Carmo
c04b681612 Add useForeground to TouchableNativeFeedback (#18617) 2017-08-04 16:47:23 -07:00
huhuanming
6e8ad8b332 bump to 0.47 (#18561) 2017-08-02 12:59:19 -07:00
Al Prater
78ea950c0c [react-native] Add DataDetectorType to WebViewPropertiesIOS (#18543) 2017-08-01 12:09:31 -07:00