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

914 Коммитов

Автор SHA1 Сообщение Дата
Brent Erickson 9c08c290b5 MacOs Accessibility - Keyboard focus + VLV (#902)
* Add accessibility traits needed for MacOS Buttons
Keep this behind a flag until public react-native-mac fully supports this

* Add (experimental) support for keyboard based navigation on Mac

* Disable cell recycling in VLV on mac to support keyboard based accessibility
Currently there's no mechanism to tell mac to ignore specific views if they don't have a touch handler

* Fix spacing in GestureView
2018-11-08 20:37:16 -08:00
Brent Erickson d028dc521a When there are no accessibilityTraits, don't create an additional un-needed array (#901) 2018-11-08 19:41:19 -08:00
Brent Erickson 0b5a577a8e Fix web accessibility in reactxp-virtuallistview (#899)
* Fix accessibility in reactxp-virtuallistview
1) Ensure that there is a selectable item on vlv mount
2) Ensure that if the focuses item is removed, we pick a new item (instead of asserting)

* Down -> Up
2018-11-08 19:37:46 -08:00
Brent Erickson 78e91a82cb Update dependencies to upgrade merge module (#900)
* Update merge in ImageList

* Update package-lock.json for HelloWorld
2018-11-08 19:35:50 -08:00
Brent Erickson 5e26ac9835 VirtualListView: Turn on Strict flag in Typescript compiler (#897)
* VirtualListView: Turn on Strict flag in Typescript compiler
Fix all resulting issues

* Remove breaking change
2018-11-08 19:25:08 -08:00
Brent Erickson ec74e05bc6 Ensure taht onKeyDown/Focus/Blur events are sent from ScrollView (#898)
They were only wired up for CustomScrollbar implementation, which means that VirtualListView would not work in acessibility mode unless Custom Scrollbars were enabled
2018-11-08 19:18:33 -08:00
Radu Simionescu ab2f657fe2 Windows: make FocusManager track View instances with negative tabIndex (#895)
Overview:
    Previously FocusManager dealt with keyboard focusable
components through tab navigation only, so View with tabIndex===-1 (that
is avoided by tab navigation) was left outside.
    Some special processing needed for the case app calls requestFocus on
such views and also the FocusManager scope widening to cover screen reader
focus control made us reconsider this decision.
    The web flavor was fixed, yet the windows one was forgotten. The
current fix aligns the windows implementation.
Fix:
    - View with any tabIndex (as long as it's not undefined) is now
tracked by FocusManager
    - "focusFirst" is adapted to avoid these tabIndex===-1 views.
2018-11-03 08:37:29 -07:00
Brent Erickson 8781896a79 Update VirtualListview dependencies (#894)
1) Explicit version of lodash could cause double-bundling in downstream modules
2) ReactXP was pointing to a min version that was un-supported (missing scrollXAnimatedValue prop on RX.ScrollView until 1.5.0)
2018-11-03 08:36:09 -07:00
Eric Traut 1e228b0837 Fixed name of class in TodoListItem. 2018-11-01 00:13:04 -07:00
Steven Li 8d0985caee Fixed typo in README (#890) 2018-10-30 21:27:26 -07:00
Eric Traut b6e5426f8b Fixed tslint warning. 2018-10-29 13:44:11 -07:00
Eric Traut 591bf0eb76 Updated package-lock.json. 2018-10-29 13:36:53 -07:00
Vishal Kumar 5998018ce3 corrected hindi version (#888) 2018-10-29 13:25:10 -07:00
Alexander T e4950e98b1 update README to follow the latest changes of create-rx-app (#886) 2018-10-28 09:40:49 -07:00
Eric Traut 14a336bae5 Fixed recent regression in ScrollView.
Published 1.5.0-rc.2.
2018-10-28 00:30:13 -07:00
Eric Traut 44383e837f Updated RXPTest sample to use 1.5.0-rc.1. 2018-10-27 12:50:56 -07:00
Eric Traut 5b1e1a8790 Published 1.5.0-rc.1. 2018-10-27 12:48:14 -07:00
Eric Traut c4a0998319 Enabled a bunch more tslint rules.
Fixed a number of bugs uncovered by tslint.
2018-10-27 12:37:02 -07:00
Eric Traut 37b3f48540 Eliminated use of triple !!! in favor of more standard single !. 2018-10-27 11:14:40 -07:00
Eric Traut fe406d0a53 Fixed bug #875 - added exception handlers around calls to findDOMNode. We had previously assumed this call returned null if the node couldn't be found, but it turns out to throw an exception. 2018-10-27 11:10:07 -07:00
Andrei Mihailov e8efbf656c Add web placeholder text color support (#868) 2018-10-27 09:41:55 -07:00
Alexander T b92f2347fd Update ImageList example (#883) 2018-10-27 09:36:26 -07:00
Raphael Miedl 3805281170 Fix typos (#884) 2018-10-26 14:57:11 -07:00
Brent Erickson 621eeccd60 Apply ScrollView focus workaround to MacOS (#873) 2018-10-26 08:54:50 -07:00
Eric Traut f52944aef2 Fixed bug #877: Missing component mounted check in PopupContainerView. 2018-10-25 22:56:47 -07:00
Radu Simionescu 51dfca831b Fix RXPTest dependencies and UWP build (#881)
* Update dependencies to latest React (16.6.0), RN (0.57.3), and RNW (0.57.0-rc.0)

* Changed SDK minTarget to RS1

* Disabled inline view tests due to RN breaking support for those

* Fix test broken due to (potentially) stricter RN checks

* Disable crashing test

* Freshen xCode project related files (from xCode v10)
2018-10-25 22:39:09 -07:00
Alexander T a5b446ab5b feature/update hello world (#882)
* update hello-world example

* update RN. webpack, fork-ts-checker-webpack-plugin, add dependencies to iOS project
2018-10-25 21:51:04 -07:00
Alexander T cd0e615411 feature/update hello world js (#880)
* update hello-world-js example

* remove libRNSVG-tvOS.a

* fix formatting
2018-10-25 09:10:45 -07:00
Alexandre Taschner 8e2e8d269c Fixing a little markdown typo on TodoList Readme (#879)
* Fixed markdown typo

* keeping the same pattern
2018-10-24 08:09:01 -07:00
OjasviBhargava 838a3f3e4d Update README_Hindi.md (#878)
Fixed hindi spellings and grammar
2018-10-24 00:57:01 -07:00
Ladi Prosek 71f7682712 Filter out emulated Cache-Control: max-stale on iOS (#870)
* Filter out emulated Cache-Control: max-stale on iOS

The header has the opposite effect on iOS: instead of having the cache
return stale data it disables the cache altogether. The header is
emulated by the component as of #853. This change adds filtering so that
RN doesn't see the header.

* PR feedback: add headers to state

* PR feedback: use _.omit()
2018-10-23 09:43:26 -07:00
Brent Erickson e1d8be8b7a Point RN MacOS TextInput at the Native common implementation (#872)
I reviewed the two and couldn't find any functionality differences (except for missing bug fixes)
Fixes #871
2018-10-19 21:44:54 -07:00
Ramya Senkutuvan 507cd58064 Not all components require to be focused. So we dont need execution of these methods when they are not (#869) 2018-10-19 21:41:10 -07:00
David de Regt 74548fd039 Simple abstraction to support RN.Animated.Event semantics (#847)
* First whack at building a simple abstraction on top of the new RN.Animated.event() ability into the RX.ScrollView control.  RN.Animated.event nominally lets you handle any parameter of the native callback object and map it into an animated value, but, in reality, for a scrollview, there's only x and y scroll position to take into account.  As such, my theory is that we should simplify the abstraction down to simply passing in a scroll{X,Y}AnimatedValue property to the scrollview, and it can do the appropriate wacky mappings to the react native event objects to map it through.

* Fixing/extending implementation of web/Animated's value interpolation.  It was making an assumption that you could only interpolated a single value from another value.  This is broken in the common case with native combined with animated.event, where you have a single native-mapped animated.value that's mapped to a scroll position, and then interpolate several other values from that root value.

* Fixing some more issues with chained Animated.InterpolatedValues on web

* Fixing some more bugs in the implementation.  Just going with output/post-interpolation values everywhere to clean things up.

* Moving interpolation warning into _startTransition, since now you can use it for other interpolation schemes that don't involve a startTransition.

* Addressing PR feedback and adding a scrollview test

* Alex T reminded me to fix the self pointer thing I was doing in web/Animated.tsx
2018-10-19 21:07:58 -07:00
Ladi Prosek ab6c8b5b08 Emulate Cache-Control: max-stale on iOS (#853)
* Emulate Cache-Control: max-stale on iOS

iOS does not seem to respect the max-stale header. It does not load
expired images from the cache unless the force-cache option (internally
NSURLRequestReturnCacheDataElseLoad) is passed.

We can't use force-cache always because it has the opposite problem of
loading only from the cache and using stale data even when the app is
online and the data served under the URL has changed.

The proposed solution is to fall back to force-cache only on encountering
the first error.

* Reset _forceCache on prop update

* PR feedback: compare only relevant props

* PR feedback: use state, only-if-cached, and document the behavior

* Fix comment

* Initialize state

* Initialize state without constructor
2018-10-11 19:30:51 -07:00
Mihai 439fcfcdda Removed draggable="false" from source code, as it is default value (#854) 2018-10-10 20:43:46 -07:00
Alexander T 7f92288135 feature/update image list example (#852)
* update ImageList example

* update BundleIdentifier

* remove public modifiers and trailing-commas
2018-10-10 07:49:28 -07:00
Radu Simionescu 327150b4b0 RTL changed event (#848) 2018-10-10 07:20:18 -07:00
Siddhesh 411d476a47 Added README in Hindi (#849)
* added README in Hindi

* added README in Hindi final
2018-10-09 08:22:27 -07:00
Eric Traut 42183e21cd
Added code to disable mouse gestures in main view when a modal dialog is overlaying the main view. (#846) 2018-10-08 08:30:34 -07:00
Luis Naranjo b1c84e932e Pass the cancelable prop down to RN.Alert (#843)
* add preventDismissOnPress?

* doC

* bugfix

* implement web

* add test case
2018-10-07 12:54:31 -07:00
Eric c25045728c Add information about how to use create-rx-app cli (#842)
* Add information about how to use create-rx-app cli

This way people don't need to go into separate page

* Update README.md

add information about creating JS project
2018-10-04 17:22:31 -07:00
Vikram Raja 32317565da Add setup instructions for NodeJS and React Native (#840) 2018-10-04 00:03:19 -07:00
Silvia O'Dwyer 2fd88b107c Fixed spelling errors and typos within the documentation. (#839) 2018-10-03 15:23:42 -07:00
Wissem Gamra 5ceed61064 Adding links to the projects in the readme (#838) 2018-10-03 11:45:41 -07:00
Eric Traut f17f9bedf0 Added documentation for border[Top|Right|Bottom|Left]Width style attributes. 2018-10-03 09:08:52 -07:00
Alexander T 01d8d774d6 Update peerDependencies (#836) 2018-10-02 14:41:26 -07:00
Eric Traut 79218164cd Fixed bug #833: Eliminated full re-renders of app when mousing over popup due to interaction between setState and getChildContext. 2018-10-01 23:13:48 -07:00
Eric Traut 8b55976144 Updated dependences for all samples. 2018-09-30 13:51:14 -07:00
Eric Traut 622ddfc7b3 Published 1.4.0. 2018-09-30 13:39:19 -07:00