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

127 Коммитов

Автор SHA1 Сообщение Дата
Alexander T 054e4d92cb Replace TSLint on ESLint (#1175) 2020-01-13 12:58:22 -08:00
Alexander T 5515a41be5 Replace TSLint on ESLint (#1176) 2020-01-13 12:57:19 -08:00
Alexander T d3f13ae42d Replace TSLint on ESLint (#1173) 2020-01-11 19:17:48 -08:00
Alexander T 5dafd2b109 Replace TSLint on ESLint (#1172) 2020-01-11 19:16:39 -08:00
Alexander T fb9504c354 Replace TSLint on ESLint (#1171) 2020-01-11 19:15:08 -08:00
Alexander T 3e1a67add4 Replace TSLint on ESLint (#1170) 2020-01-09 11:21:25 -08:00
Alexander T ef3defa15b Replace TSLint on ESLint (#1169) 2020-01-08 10:28:52 -08:00
David de Regt 148685062e Updated all extensions to v2.0.0 (2.1.0 for VLV), updating all their dependencies along the way. Then all samples to 2.0.0 to use the new 2.0.0/2.1.0 releases of everything. Fixed TodoList, which appears to have been unable to compile for a little while -- oops. 2019-11-30 01:33:59 -08:00
David de Regt b6dee50ec9 Fixing build issue in imagesvg 2019-11-14 22:22:29 -08:00
David de Regt 6eeaf420e2
Changes for 2.0.0-rc.2 (#1165)
* Bumped all dependencies in all projects in the repo to latest.  Got RXPTest building again on web and ios, and ran into some issues.

* Fixing regression in web scrollview from a couple weeks ago

* Published new reactxp-webview 2.0.0-rc.3.  Consuming that in RXPTest to avoid version mismatches.  webview tests now work on ios.

* Eliminating setMaxContentSizeMultiplier since it's not in public RN

* Fixing the image api test to take pixel ratio into account

* Updating all react native peer deps to just >=0.57
2019-11-14 22:15:28 -08:00
Brent Erickson 06b5d13ae4 Publish reactxp-video 2.0.0-rc.2 2019-10-09 09:30:23 -06:00
Alexander T 7134574b3e update react-native-video to 4.* (#1148) 2019-10-09 09:26:31 -06:00
Brent Erickson 4d9cc529b6 Publish reactxp-webview@2.0.0-rc.2 2019-09-12 13:14:12 -07:00
Mike Hardy a0cf7c6f73 fix: upgrade react-native-webview dependency, remove obsolete props (#1140)
* fix: upgrade react-native-webview dependency, remove obsolete props

react-native-webview issued a breaking change release to shed the
UIWebView references on iOS, as Apple indicated they would soon stop
accepting app submissions that used that deprecated API.

react-native-webview is now fully WebKit and without this the webview
extension here references obsolete symbols because the JS layer still has
RNCWKWebView symbols from react-native-webview <7 while the auto-linked
iOS Pod is from react-native-webview >=7

Perhaps react-native-webview should be a peerDependency?

More info: https://github.com/react-native-community/react-native-webview/releases/tag/v7.0.1

* remove react-native-webview devDependency as part of lean-core extraction

* update package-lock after removing react-native-webview devDependency
2019-09-12 13:09:07 -07:00
Mike Hardy bf8a249be7 Use new/temporary react lifecycle methods (#1039) (#1127)
* Use new/temporary react lifecycle methods (#1039)

This migration was performed using the recommend codemod tool:
`npx react-codemod rename-unsafe-lifecycles`
https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#renaming-unsafe-lifecycle-methods

The change to tslint.json should be reverted after the second phase of this change
where the deprecated/UNSAFE APIs are removed completely in favor of different lifecycle APIs

The converted code will not work on react versions < v16.3 (react-native v0.55)
The converted code will continue to work on react v17.x

* Log what test is next so failures are easy to localize

* Fix mouse test render failure, text must be inside text JSX

* Change button render direction so all buttons are visible
2019-08-21 17:42:10 -07:00
Brent Erickson 743533a6f0
Breaking Change: Remove SyncTasks from reactxp core and prefer ES6 promises (#1129)
* Remove SyncTasks from reactxp core and prefer ES6 promises
Usage of ES6 promises is more standardized, using SyncTasks by default doesn't provide many consumers a large benefit. If they need SyncTasks promises, they can wrap in SyncTasks.fromThenable at the use site

* Update reactxp-netinfo to remove SyncTasks

* Update samples to use ES6 promises
2019-08-21 15:48:34 -07:00
Eric Traut 75e431b9c2 Updated all packages to 2.0.0-rc.1 and republished. 2019-07-27 09:44:10 -07:00
Brent Erickson b0e88d3155
Restore NetInfo package changes (#1119)
The split-out into a standalone module shouldn't block on an incomplete implementation for web
2019-07-20 16:00:03 -07:00
Eric Traut 883767de18 Published version 1.7.0-rc.1 of core reactxp extensions.
Updated samples to include latest versions of reactxp and extensions.
2019-07-14 17:43:00 -07:00
Scott Beca 618572ebbe Replace external assert dependency with internal assert (#1095)
* Replace external assert dependency with internal assert

* Missed one of the dependencies
2019-07-14 16:31:30 -07:00
Scott Beca 044d46eb8d Extract the WebView component out of core and into an extension (#1101)
* Extract the WebView component out of core and into an extension

* Fix a race condition that could result in accurate test results in RXP Test

* Resolve Github review nit

* Fix typo
2019-07-14 16:30:34 -07:00
Scott Beca 3c3d2224c3 Update dependencies (#1107) 2019-07-12 13:58:42 -07:00
Scott Beca 423167571f Remove logging from reactxp-navigation (#1109) 2019-06-17 07:04:30 -06:00
Eric Traut 249f039cf3 Revert "Change to the extracted NetInfo package (#1092)"
This reverts commit f15adab089.
2019-06-07 13:36:16 -07:00
Scott Beca f15adab089 Change to the extracted NetInfo package (#1092)
* Change to extracted NetInfo instead of version bundled with React Native

* Update to v3 of react-native-netinfo

* Move RX.Network into reactxp-netinfo

* Use reatxp-netinfo in RXPTest

* Remove reat-native-community/netinfo from base reactxp package

* Integrate NetInfo 3.2.0 which includes Windows support

* Remove file that is not part of these changes

* Remove un-needed file

* Update comments in rxp-netinfo headers
2019-06-07 13:13:05 -07:00
Brent Erickson 66ffba436f Replace all string refs with React.RefObject (#1072)
* Replace all string refs with React.RefObject
String refs are deprecated and should not be used

* Bump reactxp dependency version
2019-04-06 19:51:42 -07:00
Eric Traut 16c84ba563 Published 1.6.1 of reactxp, reactxp-navigation, and reactxp-video. 2019-03-23 09:06:11 -07:00
Zbigniew Zagórski 861a5faed4 Fix video extension to support react-native local assets. (#1066)
In react-native local assets resolved by `require()` resolve
to number. They should be passed to `react-native-video` as is.
2019-03-21 18:47:56 -07:00
Scott Beca dc54777355 Fix Navigation extension on web after commit 3849346b54 (#1063) 2019-03-20 08:54:52 -07:00
Eric Traut 3849346b54 Published reactxp 1.6.0. Published updated extensions. Updated samples and extensions. 2019-03-17 13:15:54 -07:00
Brent Erickson 5a44ec8d4f Publish reactxp-virtuallistview@2.0.0-rc.3 2019-01-30 08:34:09 -08:00
Brent Erickson baa599957e Perf improvements to VLV (#1007)
* Perf improvements to VLV
Use ES6 Map & Set instead of raw JS objects, these perform faster (https://jsperf.com/javascript-objects-vs-map-performance)
Use for..of instead of _.each, the transpiled output becomes a for loop, which is also faster than lodash (https://jsperf.com/jquery-each-vs-underscore-each-vs-for-loops/114)

* Fix bad merge
2019-01-29 20:23:14 -08:00
Brent Erickson 4743b282cc If containerHeight hasn't been updated via onLayout yet, estimate it from render block info (#1008)
For fixed height items, this should always be accurate. For variable height items, it will be corrected shortly after.
This allows the VLV to start displaying content if the container onLayout is delayed. This removes a timing hole for scrolling to items when there's only fixed height items
2019-01-28 22:02:42 -08:00
Brent Erickson 0aa1a01bb3 Make selectItemKey scrollTo behaviour configurable - scrolling isn't always desired (#1006) 2019-01-28 13:43:15 -08:00
Brent Erickson b75ea9d8c3 Publish reactxp-virtuallistview@2.0.0-rc.2 2019-01-15 12:42:24 -07:00
Brent Erickson a896f1e1f9 Auto-scroll VLV on mount when initialScrollKey prop is provided (#989)
Fix scrolling issues in VLV when using keyboard nav - non-navigable items were being excluded from the scroll calculation and causing weird jumping
2019-01-15 12:29:29 -07:00
Brent Erickson 4a9b5c6098 Rework VirtualListView (#944)
* Rework VirtualListView
- Move the concept of focus/selected into VLV itself - usually we want to select something
- Use React.Fragment to remove one layer of un-needed rendering
- Provide a single object in renderItem callback that contains details about focus/selection state

* Fix a bug that would result in incorrect selection when list items are fully replaced

* Allow cell recycling on macos

* Add disableTouchOpacitiyAnimation to cells

* tslint fixes

* lint fixes

* PR comments

* Fix bunding in VLV scrollToTop

* PR comments and add support for auto-scroll when using keyboard nav

* Keep cell focus tracked in VLV after tabbing away
This allows children components of VLV to be focused

* Expose ScrollEventThrottle via VirtualListView

* Add two missing props in docs

* Add a flag to disable cell recycling

* Remove prop to disable cell recycling, but enable another mechanism to do it
2018-12-13 18:31:22 -08:00
Alexander T fbefec57ad Use native Array.isArray instead of _.isArray (#954) 2018-12-03 08:55:23 -08:00
Eric Traut 58cab4d3c7 Updated reactxp extensions and published 1.5.0. 2018-12-01 16:59:45 -08:00
Brent Erickson ae2ac8675a Set VLV Cell tabIndex to -1 if the item is falsy or non-navigable (#947) 2018-11-30 18:54:43 -08:00
Brent Erickson 1afb6ebd5c Enable all reactxp tslint rules in reactxp-virtuallistview (#950) 2018-11-27 18:50:27 -08:00
Eric Traut ebdacd84b4 Published 1.5.0-rc.4. 2018-11-18 10:29:47 -08:00
Brent Erickson f2af7ee5c6 Fix a item focus bug in VLV (#914)
If the first item in the list wasn't marked as navigable, the keyboard nav logic wouldn't select any element automatically and it may not be possible to navigate through the VLV with the keyboard
Instead select the first navigable item by default
2018-11-17 00:09:59 -08:00
Evgenii Utkin ba835089b2 Reactxp experimental navigation version update (#924)
Reactxp experimental navigation version update to 1.0.14
2018-11-16 12:46:50 -08:00
Brent Erickson ee17b4da8a Handle keycodes for RN in VLV (#915)
Caused by #419
2018-11-14 17:01:03 -08:00
Eric Traut ce1448f1f9 Published 1.5.0-rc.3 of reactxp and 1.5.0-rc.1 of reactxp-virtuallistview. 2018-11-11 10:14:19 -08:00
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 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 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 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