Граф коммитов

875 Коммитов

Автор SHA1 Сообщение Дата
Eric Traut 4e120e333e Documentation limitations in RX.Text's numberOfLines prop. 2018-09-07 19:56:01 -07:00
Eric Traut 2eb8ff0cfc Reverting package lock changes from previous check-in. 2018-09-07 17:11:22 -07:00
Radu Simionescu dd5a715219 Fix regression (#796) 2018-09-07 17:10:35 -07:00
ZestyTS 45db09365e Fixing typos (#794)
* Fixed Typo

* Fixed Names
2018-09-05 08:46:20 -07:00
Ondřej Záruba c9e26a1de6 #768 disable cursor type override (#793) 2018-09-04 09:51:23 -07:00
Eric Traut 548b3b5857 Fixed minor typo in TodoList readme. 2018-09-03 12:22:01 -07:00
David de Regt e63a37f7a0 Adding onLongPress and Mouse/Touch distinction to GestureView (#789)
* Added onLongPress handling to GestureView.  Added isTouch to the GestureState base to tell whether gestures came from touch or mouse.  It appears that ReactXP's web gestureview doesn't actually support touches at all right now, so it's very platform-specific for now, but hopefully someday that won't be the case...

* Added docs, a unit test, addressed feedback, and, uh, the missing web implementation that I seem to have forgotten.
2018-09-03 11:00:48 -07:00
Radu Simionescu 81e6b6b865 Added support for multi window apps to Alert. (#787)
A committed but not yet released version of RN for Windows adds support for alerts in multi window apps by the means of a new option in RN.AlertOptions. This option is a react tag that is used as a hint by the native side to detect the right top level window to parent the native alert.
ReactXP API models the identification of root views through "rootViewId" properties. They are already used for modals/popups, so we're adding same property to RXP.AlertOptions.
The implementation keeps a list of active root views in order to quickly map the rootViewId to the RNW expected react tag hint.
This mechanism will be used for other APIs as well in future PRs (there's one where we pass the rootViewId to RNW directly, and that in not very clean since it expects RNW to understand RXP properties)
2018-08-29 17:48:42 -07:00
Eric Traut 281c533651 Published 1.3.2 of reactxp-imagesvg. 2018-08-25 16:53:33 -07:00
David de Regt 07a28214b1 Adding rect support to reactxp-imagesvg (#786)
* Adding rect support to reactxp-imagesvg.

* PR feedback/docs
2018-08-25 16:50:35 -07:00
Eric Traut ebe1aaeab5 Updated dependencies to latest versions. Added React.RefObject<ComponentBase> to ref type in CommonProps. 2018-08-24 21:01:56 -07:00
Mike Hardy e6728f9a4e Use localhost:8080 so /etc/hosts changes are unnecessary (#779) 2018-08-17 11:42:19 -06:00
Alexander T e44654c612 Remove _styles type casting to any. Remove styles duplicates (#778) 2018-08-15 17:38:26 -06:00
Eric Traut 24690ce33d Addressed bug #744: Different behavior of styling on web in development 2018-08-13 18:05:18 -07:00
David de Regt 9e50471729 Brent pointed out a problem in my last change, where first-runs of no… (#776)
* Brent pointed out a problem in my last change, where first-runs of non-cached images would throw an error as well as a load.  Reworked it to only show the img tag when the blob url is loaded, if there's an onload prop.

* Fixing PR feedback.
2018-08-13 18:54:58 -06:00
David de Regt 233a0298c6 We need to be showing the full img tag for ANY images with onload/onerror events, since there's no way to get the dimensions off the background image to resolve the onload callback as callers expect. (#775) 2018-08-13 18:31:01 -06:00
Yury Zholobov 96dccedc22 Changed announceForAccessibility implementation to use Assertive live region type instead of Polite. When Polite is used the request for announcement will be overridden by a subsequent narration. Usually this happens when code calls the announcement API and then focus is changed either programmatically or due to UI changes as result of event that was announced - in this case the automatic narration of a newly focused control suppresses the announcement, usually even before it starts. With announcement being Assertive, though, both automatic narration and the announcement are read and no information is lost. (#773) 2018-08-10 19:49:35 -06:00
Eric Traut bec53b6dd4 Publised reactxp-imagesvg 1.3.1. 2018-08-07 23:37:13 -06:00
Eric Traut 041380c58a Start to use npm's package-lock feature. 2018-08-07 23:36:50 -06:00
David de Regt 8af7e09a2f ImageSvg extension: 1.3.1: Fixing warning on native when passing a key prop to the SvgPath component. (#770) 2018-08-07 23:33:21 -06:00
Eric Traut 5272093ee0 Published 1.3.3 2018-08-02 22:56:27 -07:00
Eric Traut 6d06370264 Published version 1.3.1 of VirtualListView. 2018-08-02 22:07:00 -07:00
Luis Naranjo 57f467cea4 add the mixed content mode prop (#764)
* add the mixed content mode prop

* implement PR feedback to re-use sandbox prop

* address PR feedback
2018-08-02 22:04:03 -07:00
Marat Abdullin 93442d0278 Fixing the crash because of possibility for buttonStyles to be undefined, fixing the inconsistency in onAccessibilityTapIOS definition for Button and View. (#767) 2018-08-02 11:36:19 -07:00
Eric Traut d05380fb47 Minor tweak to getting-started docs. 2018-07-29 17:02:00 -07:00
Eric Traut 4ba47572e7 Updated Getting-started documentation based on feedback. 2018-07-29 16:55:01 -07:00
Brent Erickson 18d4a2e5b1 Update usages of findDOMNode to indicate that it returns null (#761)
Fix a bug in web animations that results in a crash due to this
2018-07-26 18:18:28 -07:00
Brent Erickson 7347886ab9 Use semver in reactxp dependencies (#760)
* Use semver in reactxp dependencies

This prevents consumers from accidentally importing and bundling two versions of the same library

For example, if I have version 1.0.0 in reactxp and 1.0.1 in my app, I would bundle both versions.  If reactxp has semver, it allows 1.0.1 to be bundled once since it's compatible with the referenced version in reactxp

* Update package.json
2018-07-23 14:19:22 -07:00
Alexander T 36c9f172a3 751 - Add ImageBackground to handle children elements (#759)
* 751 - Add ImageBackground to handle children elements

* Move ImageBackground functionality to Image component. Revert optionalImg
2018-07-21 14:29:16 -07:00
Eric Traut dc4e7aa817 Fixed regression in Timers.ts. Some environments don't define "global" and use "window" instead for the built-in timer functions. 2018-07-18 21:20:46 -07:00
Brent Erickson f8c6d4f04d [Web] Prevent a crash during onLayout handling (#756)
_checkAndReportLayout calls into _getContainer which calls ReactDon.findDomNode
It's possible for the component to already be unmounted, so we should protect this call and return null if there's no longer a node
2018-07-18 10:07:38 -07:00
krbartov 2f783b8d8f s#1528727 Accessibility fix for Clipboard (#752)
* #1528727 Accessibility fix for Clipboard

* #1528727 Code update

* #1528727 Code clean up

* #1528727 Code cleanup

* #1528727 Code cleanup

* #1528727 Code cleanup
2018-07-18 10:04:06 -07:00
alregner 68ad825a6c isRightMouseButton implementation that works also on mac. (#753) 2018-07-16 08:44:37 -07:00
Eric Traut 80ca7696aa Removed noisy assert in TodoList sample code. 2018-07-14 10:24:25 -07:00
Miguel Caballero Pinto 932aa7deb5 Set size attribute of input HTML element to 1. (#749)
The input HTML element has size 20 by default. This means that it has to allocate at least 20 characters, which makes the input to have a minimum width that can fit those characters (the final minimum width in pixels depends on the browser and the font. More info: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input). This behavior differs from mobile implementation that doesn't have a minimum width by default.

Since size attribute has to be greater than 0, setting it to 1 is the closest we can get to have same behavior across platforms.
2018-07-11 17:54:41 -07:00
Eric Traut 8a2ca87fe2 Updated VLV documentation to include testId. Alphabetized props for consistency. 2018-07-10 20:17:18 -07:00
Luis Naranjo d354d85f9a Pass testId from VirtualListView to ScrollView (#748)
* pass testId from props to scrollview

* add testId prop to VirtualListViewProps
2018-07-10 20:15:22 -07:00
Eric Traut 569cbc45df Added test case for 'cursor' style override on button. 2018-07-10 20:11:43 -07:00
Eric Traut 715f24f7be Fixed bug #746 relating to cursor overrides for buttons on the web implementation. 2018-07-10 20:03:29 -07:00
Alexander T b0e664426f WebView.onMessage receives additional props which are not defined in Types.WebViewMessageEvent (#745) 2018-07-10 08:48:19 -07:00
Alexander T e0fb93c22b Fix showOverflow prop (#744) 2018-07-08 23:07:24 -07:00
Eric Traut 1764ca2b1d Published 1.3.2. Missed a cherry pick in 1.3.1. 2018-07-07 16:08:10 -07:00
Eric Traut cd0c47cbc8 Published 1.3.1. 2018-07-07 16:01:11 -07:00
Eric Traut 461a587157 Updated custom tslint groupedImportRule to treat paths starting with @ as relative. 2018-07-07 15:56:04 -07:00
Alexander T 44cbe1b1ca Remove useless type casting to any (#743) 2018-07-07 01:16:31 -07:00
Eric Traut 02d1325221 Eliminated a couple of React JS warnings. 2018-07-05 10:26:51 -07:00
Eric Traut 4be32b5d4f Added support for "title" prop on RX.TextInput. It was supported for all other RX components, so this was just an oversight that it was missing. 2018-07-04 23:42:12 -07:00
Alexander T 5789cefcea Add additional values to RN.Image: auto|repeat (#741) 2018-07-03 23:44:56 -07:00
Alexander T 370d5f0d56 extensions/video - Remove unused variables (#739) 2018-07-02 23:35:51 -07:00
Alexander T ab9bbc8eb3 extensions/imagesvg - use @types/react-native instead of custom definitions. Remove unused variables (#736) 2018-07-02 08:58:30 -07:00