Commit Graph

48 Commits

Author SHA1 Message Date
Bruno Grieder
94fa3e9080 Multiple minor fixes (#10339)
* better typing of onShouldStartLoadWithRequest in WebViewPropertiesIOS

* Fixes to WebViewProperties

* Missing methods in Navigator

* Fix of Platform.select()

* added support for interfacing with native-modules

* added support for interfacing with native-modules

* added dev variable

* Update to header notes

* Examples: alternative styles declaration
2016-07-29 00:26:43 +09:00
Andy Shu Xin
73291dad15 Document changes in 0.28 and 0.29 in React Native (#10309)
* RN: Widen limit of refreshControl

* RN: Update NavigationExperimental to 0.28

* RN: Define new method from 0.28

* RN: Promisify requestPermissions per 0.28

* RN: Remove onNavigate method

See: fb0007d853 (diff-04c37ff76f85aea35e8475617539b75fR94)

* RN: Add onNavigateBack method

See: fb0007d853 (diff-04c37ff76f85aea35e8475617539b75fR94)

* RN: Deprecate StatusBarIOS

* RN: Update StyleSheet API per 0.29

* RN: Define KeyboardAvoidingView added in 0.29

* RN: Define saveToCameraRoll added in 0.29

* RN: Define cancellable from InteractionManager

* RN: Add new possible values of flexDirection

* RN: Define lineBreakMode

* RN: Allow zIndex prop

* RN: Allow dimension limits

* RN: Specify type of refreshControl

* RN: Mark properties as optional

* RN: Clarify parameter naming

* RN: Mark optional property as optional

* RN: Definite explicit ref type

* RN: Restore StyleSheet.create to restore compatibility
2016-07-28 23:24:40 +09:00
Yui
2864d5392d Merge pull request #10264 from jokester/react-native-remove-promise
remove Promise from react-native
2016-07-25 20:58:34 -07:00
Wang Guan
037c33d5e0 remove Promise from react-native 2016-07-25 03:38:40 +09:00
Wang Guan
29e1a843c2 let the following interfaces extend ViewProperties:
- ActivityIndicatorIOSProperties
- ActivityIndicatorProperties
- DatePickerIOSProperties
- DrawerLayoutAndroidProperties
- PickerProperties
- MapViewProperties
- ProgressBarAndroidProperties
- ProgressViewIOSProperties
- RefreshControlProperties
- ScrollViewProperties
- ListViewProperties
- SegmentedControlIOSProperties
- SliderProperties
- SliderIOSProperties
- TabBarIOSProperties
- TabBarItemProperties
- SwitchProperties
- SwitchPropertiesIOS
- WebViewProperties
2016-07-25 03:04:14 +09:00
Brad Smith
da7c99c73b Added unselectedTintColor prop to TabBarIOS (#10251)
Per https://facebook.github.io/react-native/docs/tabbarios.html#props
2016-07-23 23:30:08 -07:00
Ruben Slabbert
4c7d03b088 React-Native: Added ActivityIndicator (#10122)
* React-Native: Added ActivityIndicator

* React Native: Added @Deprecated to ActivityIndicatorIOS and changed string type to enum type on ActivityIndicator size
2016-07-19 16:25:34 -07:00
Wang Guan
7f5ba75603 add definition for Navigator in react-native 0.29 (#10035) 2016-07-09 15:35:08 +09:00
Andy Shu Xin
5a3d3f6fbd RN: Fix typo and flukes (#9665)
* RN: add props definition for WebView

* RN: Add platform-specific props to WebView

* RN: Add getWebViewHandle method

* RN: add source props to WebView

* RN: fix type of decelerationRate

* RN: Update Picker.Item props

* RN: Update props name

* RN: Clarify mode range

* RN: Add definition for DrawerLayoutAndroid

* RN: Update Image

* RN: Update ListView

* RN: Update MapView to 0.25

* RN: Add Modal

* RN: Update ScrollView

* RN: Add SegmentedControlIOS

* RN: Add Slider

* RN: Update SliderIOS

* RN: Define Status Bar

* RN: export StatusBar

* RN: Define Switch

* RN: Update Text

* RN: Update TextInput

* RN: Add ToolbarAndroid

* RN: Update TouchableOpacity

* RN: Update TouchableWithoutFeedback

* RN: Update View

* RN: Update ViewPagerAndroid

* RN: Fix mistakes

* RN: Unify indentation

* Add 2 components; fix some minor problems

* fix: follow the convention

* RN: Update ActionSheetIOS

* RN: Add Alert api

* RN: Fix reference

* RN: Update AlertIOS

* RN: add typing for type parameter

* RN: Update AppRegistry

* RN: Update AppState and AppStateIOS

* RN: Add BackAndroid

* RN: Update Camera Roll

* RN: Add Clipboard

* RN: Add DatePickerAndroid

* RN: Update Dimensions

* RN: Update InteractionManager

* RN: Add methods to DrawerLayoutAndroid

* RN: Export DatePickerAndroid

* RN: Add IntentAndroid

* RN: Add Linking

* RN: Add LinkingIOS

* RN: Add NetInfo

* RN: Update PixelRatio

* RN: Update PushNotificationIOS

* RN: Update StyleSheet

* RN: Add TimePickerAndroid

* RN: Update ToastAndroid

* RN: Add Vibration

* RN: Set stricter definition for flexbox props

* RN: Define ShadowPropTypesIOSStatic

* RN: Fix indentation

* RN: Add Geolocation

* RN: Export Geolocation

* RN: Move Geolocation to proper position

* RN: Define fetch

* RN: Fix tabs

* RN: Define schedulers

* RN: Major fixes from @PublicParadise

* RN: Update version

* RN: Add documentation as comments

* RN: Add more comments

* fix: typo

* add some missing callbacks

* RN: Export switch

* add missing commentes

* Fix(Switch): add style property

* RN: Update Navigation Experimental

* RN: Define SwipableListView

* RN: Add necessary marks

* RN: Improve unclear typing

* RN: Enable pagingEnabled for ScrollView

* RN: Enable returnKeyType for both platforms

* RN: Add returnKeyLabel to Android

* RN: Add a prop

* RN: Add scrollEnabled prop in 0.27

* RN: Add new prop from 0.27

* RN: Fix typo

* RN: Remove redundant export

* RN: Fix typo

* RN: Add missing definitions

* RN: Fix missing type declarations

* Annotate params
2016-06-19 12:00:06 +09:00
Andy Shu Xin
d0d756ea7f Update React Native Definition to 0.27 (#9563)
* RN: add props definition for WebView

* RN: Add platform-specific props to WebView

* RN: Add getWebViewHandle method

* RN: add source props to WebView

* RN: fix type of decelerationRate

* RN: Update Picker.Item props

* RN: Update props name

* RN: Clarify mode range

* RN: Add definition for DrawerLayoutAndroid

* RN: Update Image

* RN: Update ListView

* RN: Update MapView to 0.25

* RN: Add Modal

* RN: Update ScrollView

* RN: Add SegmentedControlIOS

* RN: Add Slider

* RN: Update SliderIOS

* RN: Define Status Bar

* RN: export StatusBar

* RN: Define Switch

* RN: Update Text

* RN: Update TextInput

* RN: Add ToolbarAndroid

* RN: Update TouchableOpacity

* RN: Update TouchableWithoutFeedback

* RN: Update View

* RN: Update ViewPagerAndroid

* RN: Fix mistakes

* RN: Unify indentation

* Add 2 components; fix some minor problems

* fix: follow the convention

* RN: Update ActionSheetIOS

* RN: Add Alert api

* RN: Fix reference

* RN: Update AlertIOS

* RN: add typing for type parameter

* RN: Update AppRegistry

* RN: Update AppState and AppStateIOS

* RN: Add BackAndroid

* RN: Update Camera Roll

* RN: Add Clipboard

* RN: Add DatePickerAndroid

* RN: Update Dimensions

* RN: Update InteractionManager

* RN: Add methods to DrawerLayoutAndroid

* RN: Export DatePickerAndroid

* RN: Add IntentAndroid

* RN: Add Linking

* RN: Add LinkingIOS

* RN: Add NetInfo

* RN: Update PixelRatio

* RN: Update PushNotificationIOS

* RN: Update StyleSheet

* RN: Add TimePickerAndroid

* RN: Update ToastAndroid

* RN: Add Vibration

* RN: Set stricter definition for flexbox props

* RN: Define ShadowPropTypesIOSStatic

* RN: Fix indentation

* RN: Add Geolocation

* RN: Export Geolocation

* RN: Move Geolocation to proper position

* RN: Define fetch

* RN: Fix tabs

* RN: Define schedulers

* RN: Major fixes from @PublicParadise

* RN: Update version

* RN: Add documentation as comments

* RN: Add more comments

* fix: typo

* add some missing callbacks

* RN: Export switch

* add missing commentes

* Fix(Switch): add style property

* RN: Update Navigation Experimental

* RN: Define SwipableListView

* RN: Add necessary marks

* RN: Improve unclear typing

* RN: Enable pagingEnabled for ScrollView

* RN: Enable returnKeyType for both platforms

* RN: Add returnKeyLabel to Android

* RN: Add a prop

* RN: Add scrollEnabled prop in 0.27

* RN: Add new prop from 0.27
2016-06-08 20:05:12 +09:00
Howard Yeh
03c232c180 react-native add BackAndroid (#9096) 2016-05-01 23:01:41 +09:00
Howard Yeh
310c247694 React native animated (#9057)
* Type Animated.Value

* react-native Animated.spring

* react-native AnimatedValueXY type

* react-native Animated.parallel

* react-native Animated.event

* react-native Animated components

* react-native tweak Animated types

* react-native add Animated.timing

* react-native rewrite animation config as interface

* react-native remove semi-colons

* react-native refine the type AnimatedValue

* react-native refine the type AnimatedValue

* react-native animated no implicit any

* react-native animated API tests

* react-native more Animated API type coverage

* react-native add Animated.Base as alias of commone base type

* react-native fix typedef bug
2016-04-26 01:03:05 +09:00
Howard Yeh
42e2274e9b react-native specialized Component class (#9060)
* react-native specialized Component class

* react-native native component methods

* react-native move global static outwards

* react-native fix typedef bugs
2016-04-25 23:50:02 +09:00
Howard Yeh
362675c31d Add Dimensions module to react-native (#9056) 2016-04-23 21:56:20 +09:00
Bernd Paradies
870676f6e2 Adding scrollTo to react-native's ScrollViewStatic 2016-04-03 20:32:13 -07:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Jung-gun Lim
adb2d9174d Update definition for react-native: Changed import syntax 2016-02-17 10:25:37 +09:00
Jung-gun Lim
52270b0734 Update definition for react-native: ViewPagerAndroid 2016-02-16 17:37:38 +09:00
Jung-gun Lim
fa788ae7c5 Update definition for react-native : AppState 2016-02-16 16:20:38 +09:00
Brandon Kase
67b4a67acd react-native: Param added to ScrollView onScroll 2016-01-28 18:03:01 -08:00
York Yao
3a49a79182 Update react-native-tests.tsx 2016-01-20 20:47:54 +08:00
York Yao
a6e024eb4a Update react-native.d.ts
https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Writing%20Definition%20Files.md
2016-01-20 20:46:35 +08:00
vvakame
781e468d4b remove unused .tscparams 2015-12-23 18:23:35 +09:00
bgrieder
732f2f4bc1 improved definitions so that react-native 'extends' react rather thane 're-exports' react 2015-11-26 05:46:09 +01:00
bgrieder
12c6eec04b Improvements to Events System + PanResponder + PushNotificationIOS + StatusBarIOS + VibrationIOS 2015-11-22 09:58:22 +01:00
bgrieder
0616a7fb66 Added CameraRoll + NetInfo + PanResponder &&+ Fixes to ViewProperties 2015-11-18 09:40:09 +01:00
Masahiro Wakame
53f09cc38a Merge pull request #6725 from bgrieder/master
More definitions and fixes for react-native
2015-11-16 22:20:07 +09:00
bgrieder
8680e1d5b2 Added AppState + ASyncStorage 2015-11-15 07:44:36 +01:00
bgrieder
a35e83d260 Added: AlertIOS + AdSupportIOS + AlertIOS 2015-11-14 19:54:22 +01:00
bgrieder
abd55faafa Multiple fixes to TextInput, WebView, Touchables + Added WebView 2015-11-13 08:24:57 +01:00
bgrieder
bc7ac5c334 Added definitions for Text 2015-11-12 08:52:17 +01:00
bgrieder
0f43e25850 Added or fixed definitions for PickerIOS + ScrollView + SliderIOS + SwitchIOS + TabBarIOS. Multiple minor fixes 2015-11-12 07:06:25 +01:00
bgrieder
ba437e7e28 Fixes to ListView + Added MapView + Added LayoutAnimation 2015-11-11 22:06:32 +01:00
James Brantly
99443d33d5 Update tests for dependencies of React to work with v0.14 2015-11-11 09:47:20 -05:00
bgrieder
c8ad4f59ef Image fixes & add ImageResize 2015-11-11 10:34:31 +01:00
bgrieder
a3631563a8 added ActivityIndicatorsIOS 2015-11-11 06:42:07 +01:00
bgrieder
303486394f Fixes to NavigationBar and BreadcrumbNavigationBar 2015-11-10 17:26:29 +01:00
bgrieder
d6c0b99afe Fixes to Navigator. Added NavigatorStatic.NavigationBar 2015-11-10 08:53:19 +01:00
bgrieder
34a93a77af Improvements to Route and NavigatorIOS 2015-11-09 14:48:00 +01:00
bgrieder
6dedc3d5b5 Fixes to Text Component 2015-11-09 12:35:14 +01:00
bgrieder
c4d09a5d1c More Fixes + TouchableHighlight + TouchableOpacity + TouchableWithoutFeedback 2015-11-09 12:16:08 +01:00
bgrieder
a6758d638b Lots of fixes + TextInput + ScrollView + LstView 2015-11-09 11:36:09 +01:00
bgrieder
e4a4c66806 additional definitions for Navigator and NavigatorIOS 2015-11-08 07:46:36 +01:00
bgrieder
00d496b4c4 added FlexStyle and ImageProperties 2015-11-07 08:27:42 +01:00
bgrieder
b2ce26a078 Fixed missing exports 2015-11-07 07:03:49 +01:00
bgrieder
281006bf74 Test building using es5/commonjs 2015-11-06 22:40:15 +01:00
bgrieder
c4d24f7f7e Note on using ES6 as the target 2015-11-06 22:20:52 +01:00
bgrieder
efce0c25ec Initial definitions for react-native 0.14 2015-11-06 22:01:15 +01:00