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

180 Коммитов

Автор SHA1 Сообщение Дата
Nathan Broadbent cac1e8682d HTML files must have the ms-appx-web:// schema to be used in a WebView (#1123) 2017-06-01 13:25:05 -07:00
Nathan Broadbent 630b277c80 Allow third-party native modules to use DispatcherHelpers (#1118) 2017-05-31 14:40:20 -07:00
Eric Rozell 1cb0872459 feat(DeviceInfo): Adds DeviceInfo module
React Native 0.44 introduces the DeviceInfo module to simplify the UIManager.
2017-05-26 16:40:39 -04:00
Eric Rozell 57cd533b9a Revert "Move "RootView.Background = ..." into CreateRootView(), so that subclasses can return a RootView with their own Background (#1117)" (#1129)
This reverts commit 8da9f03fa1.
2017-05-24 16:09:13 -04:00
Nathan Broadbent 8da9f03fa1 Move "RootView.Background = ..." into CreateRootView(), so that subclasses can return a RootView with their own Background (#1117) 2017-05-23 10:52:55 -04:00
Eric Rozell fa85c5778f feat(WebSocketModule): Adds binary message support to WebSocketModule (#1067)
The WebSocketModule was missing the `sendBinary` ReactMethod used to support binary messages.

Fixes #1060
2017-05-23 10:47:23 -04:00
Ryan Linton 833662ead8 Code coverage reporting (#1071)
* Basic code coverage reporting using OpenCover
* Next step: enforce minimum code coverage so existing coverage levels do not regress
2017-03-23 11:16:22 -07:00
Ryan Linton 5fd6e27002 Make UIBlock Interface public, as on Android (#1050)
* This will allow gre/react-native-view-shot#45 (and in turn, Galooshi/happo ) to allow us to do screenshot-based tests in the CI
2017-03-09 13:30:12 -08:00
Eric Rozell 37ff7c2ba6 feat(ReactInstanceManager): Parameterize ReactInstanceManager on JavaScriptExecutor (#1059)
Since we have a few options to choose from in regards to the JavaScriptExecutor, we need an affordance to select which JavaScriptExecutor is used in the framework.

By default, the `ChakraJavaScriptExecutor` is currently being used.
2017-03-07 15:42:09 -08:00
Andrew Forster 8de2643e55 TextInput PlaceholderText Implementation (#1038)
* Adding placeholder text to the NET46 TextInput control by applying an adorner
2017-03-07 06:58:48 -08:00
Eric Rozell 76a8c80f8a feat(Style): Adds percent style support (#1046)
Fixes #1044
2017-03-06 14:51:35 -05:00
Eric Rozell 61b6a4f3cb chore(Yoga): upgrading Yoga package to 1.2.0-pre1 (#1047) 2017-03-06 09:40:30 -05:00
Eric Rozell cf7a301337 fix(Yoga): Pointing at patched NuGet package to fix AVE (#1043)
Facebook.Yoga was throwing an AccessViolationException on ARM devices due to a marshaling error. We added a patch to work around this limitation.

Fixes #1027
2017-03-03 16:03:01 -05:00
Lasse Annola 8201041637 Support allowFontScaling (#1034) 2017-02-27 10:13:57 -05:00
ymusiychuk-lohika d6736ba610 fix(ReactPage): Fix ApplyArguments to not fail on odd number of arguments (#1025) (#1028) 2017-02-23 16:31:10 -08:00
Eric Rozell 52cbb8e775 chore(Yoga): upgrade Facebook.Yoga to 1.1.0.23-pre (#1029) 2017-02-23 11:49:11 -05:00
Eric Rozell 34b1dfcce6 fix(TouchHandler): touch point offset due to status bar (#1012)
A previous change to adjust the touch point for a visible status bar does not seem to be necessary when the device is in landscape orientation.

Fixes #945
2017-02-16 17:11:34 -05:00
Eric Rozell 1de5197ad1 fix(Facebook.Yoga): Updating to the latest Facebook.Yoga package with UWP support (#1007) 2017-02-15 10:10:18 -05:00
Eric Rozell 26db3daf4b fix(UIManager): Adds event for `namedOrientationDidChange` (#1000)
Useful event for tracking when the app is in portrait vs. landscape mode.

Fixes #989
2017-02-15 10:09:57 -05:00
Eric Rozell 4894cfb0c5 fix(ImageLoader): Adds prefetch cancellation and cache query (#996)
Recent update to the UWP Community Toolkit allows us to cancel prefetch operations. This changeset also adds the ability to query for images on disk, but not yet in-memory.
2017-02-10 09:22:23 -05:00
Matt Hargett 0d64d00b17 Update nuget dependencies (#994)
* Bump dependencies to latest versions compatible with VS2015. Skip NUnit for now, may do in a separate pass.
* Update to latest Yoga and Toolkit.Uwp.UI. Eliminate relative references to the package directory so project files with work in the npm install scenario.
* Removing unused Postal.NET dependency.
2017-02-09 18:48:48 -08:00
Kevin VanGelder 5e7839fa9f fixed text measurement regression (#978)
* fixed text measurement regression

* also apply fix to UWP text

* also applied fix to textinput
2017-02-09 18:07:00 -05:00
Eric Rozell e9ca8f1531 feat(Yoga): Adds support for Yoga flexbox engine (#941)
Thanks to the great work by @pre10der89 and @mpodwysocki, there will soon be a NuGet package available for Facebook.Yoga. This changeset includes all the necessary modifications to integrate React Native for UWP and WPF with the Yoga flexbox engine.
2017-02-07 12:38:46 -05:00
Warpenguin bce1ae0dce Add InitialProps to ReactPage (#961)
* Add InitialProps to ReactPage
2017-02-07 03:37:22 -08:00
Damien Lajarretie 10845f1e5b Fix TextInput layout not taking height into account (#966) 2017-02-02 14:47:03 -08:00
Jari Zwarts 8d3faf7599 Fix incorrect function name for getInitialURL in LauncherModule (#959) (#960) 2017-01-19 14:54:37 -08:00
Eric Rozell 51c6e2a77a fix(ImageLoader): `getSize` API behavior for local assets (#935)
Recent changes to the ReactImageManager and the ImageLoaderModule introduced a bug where local assets were not behaving correctly because they did not work with the ImageCache API from UWP Community Toolkit.  This fix works around that limitation and uses the previous `getSize` implementation approach for non-HTTP assets.

Fixes #930
2016-12-12 10:06:56 -05:00
Eric Rozell 0d02861c61 fix(Image): Fix bundled assets for Images (#926)
Recent change to introduce caching for network images also broke image requests from local bundle.

Fixes #925
2016-12-07 11:59:04 -05:00
Kevin VanGelder 0b31f524e8 migrated slider component (#912) 2016-12-05 22:45:44 -05:00
Eric Rozell d8e944c266 fix(Picker): Clear picker items whenever items props change (#914)
Bug reported where updating the items prop with new values would result in appending rather than replacing items.  Adding a `Clear()` call to ensure correct behavior.

Fixes #911
2016-12-05 19:53:41 -05:00
Eric Rozell d4128b7907 Re-implement image w/o submodule changes (#905)
* Re-implement image w/o submodule changes

* diverged image manager for net46

* merged master and enabled image caching for .Net46
2016-12-05 14:29:25 -05:00
Kevin VanGelder b95905d54c feat(Shared): Migrated textinput component (#900)
* migrated textinput component

* diverge view managers

* remove #regions per @matthargett feedback

* sorted imports
2016-12-05 14:28:32 -05:00
Andrew Forster 2a70da46ee pass EventDispatcher to UIImplementation constructor (#898)
* Syncing with upstream

* Reverting the Examples to the previous version

* Changing UIImplementation to take the EventDispatcher in its constructor

* Fixing some formatting per review comments
2016-11-28 15:46:13 -05:00
Eric Rozell 51d5d7373f feat(Image): Add prefetch to ImageLoader module (#903)
Using UWP Community Toolkit ImageCache to implement prefetch capability for react-native Image component.

Fixes #366
2016-11-23 09:27:10 -05:00
Kevin VanGelder b9dca3c83a migrated remaining animated files (#901) 2016-11-22 22:20:07 -05:00
Kevin VanGelder 2287e84976 Re-implement scroll migration w/o submodule changes (#894) 2016-11-22 21:59:47 -05:00
Eric Rozell c43675909d hack(BaseViewManager): Workaround for ScrollViewer in Matrix3DProjection (#888)
When a ScrollViewer is placed in the context of a Matrix3DProjection (which is how translate animations are achieved in React Native), the touch-based and touchpad scrolling behaviors stop functioning.

This PR works around that by using a simple RenderTransform for common cases of matrix projections, like simple XY translations, in which scrolling still works.

Fixes #873
2016-11-21 16:30:24 -05:00
Eric Rozell 84abd17f54 feat(NativeAnimated): Adds support for animated events (#874)
This adds support for `Animated.event` driven natively.

At the moment, it works by providing a mapping between a view tag, an event name, an event path and an animated value when a view has a prop with a `AnimatedEvent` object. Then we can hook into `EventDispatcher`, check for events that target our view + event name and update the animated value using the event path.

For now it works with the onScroll event but it should be generic enough to work with anything.
2016-11-10 11:52:14 -08:00
Eric Rozell e7b90d86de feat(ScrollView): Adds min/maxZoomScale to ScrollView (#864)
Also adds zoomEnabled and zoomScale props. The zoomEnabled is a new Windows-specific prop because scroll views are not zoomable by default in Windows.

Fixes #857
2016-11-08 10:25:53 -08:00
Eric Rozell efe25a8f8b fix(TextInput): Perform more accurate measurement for PasswordBox (#856)
`PasswordBox.Measure(size)` does not result in a value being set for `PasswordBox.DesiredSize` property. The same goes for `TextBox`, which we worked around by measuring a `TextBlock` and including the `TextBox` margin values in the resulting measurement. Making the same change for `PasswordBox`.

Fixes #855
2016-11-08 09:32:05 -08:00
Eric Rozell b0104b5bf6 chore(UIManager): Removing outdated TODO (#863) 2016-11-08 08:25:31 -08:00
Eric Rozell 675702b277 feat(Animated): Adds Animated.division to NativeAnimated for Windows (#839) 2016-11-02 14:49:00 -04:00
Kevin VanGelder f9230c2782 feat(Shared): Migrated View and Text Views (#834)
* migrated view and text views

* cleanup font if block
2016-11-02 13:19:38 -04:00
Kevin VanGelder 7c88e83f21 feat(Shared): Migrate react page and dependencies (#846)
* migrate ReactPage and dependencies to the Shared project
2016-10-31 16:18:26 -07:00
Kevin VanGelder 32dc734c9b feat(Shared): Migrated Remaining Bridge Files (#835)
* moved remaining bridge files

* re-implement @matthargett's JavaScriptBundleLoader changes

* implement @matthargett's WPF FileJavaScriptBundleLoader

* merged bundle loader classes

* use PCL storage instead of Windows.Storage for JSBundleLoader

* use correct conditional compilation sybmol
2016-10-31 15:45:50 -04:00
Eric Rozell 009513f768 feat(Animated): Adds support for DiffClamp node
Add support for DiffClamp node on Windows for `Animated.diffClamp` that was added in https://github.com/facebook/react-native/pull/9419.
2016-10-27 23:18:21 -04:00
Eric Rozell f7156d0ade feat(View): Adds bubbling/capturing onMouse[Over|Out]
The previous commit included what was effectively an implementation of `onMouseEnter` and `onMouseLeave` because it lacked bubbling semantics. This commit changes the direct event names to `topMouseEnter` and `topMouseLeave`, leaving room to implement the bubling/capturing `onMouseOver` and `onMouseOut`.

At some point, as an optimization, we may still want to consider firing only the `topMouseOut` and/or the `topMouseOver` events, as is done in ReactDOM. This would be an optimization that leverages the assumption that whenever a "mouse out" event occurs, it should be followed by a "mouse over" event (thus subsequent "mouse over" events could be ignored).

Likewise, we may want to consider sending only one event type to JavaScript (either enter|leave or over|out), and have the bubbling behavior implemented by a React.js event plugin, as is done for ReactDOM in [EnterLeaveEventPlugin.js](c78464f8ea/src/renderers/dom/client/eventPlugins/EnterLeaveEventPlugin.js).
2016-10-27 23:10:52 -04:00
Eric Rozell bc8482a912 feat(EnterLeave): Adds simplistic approach for adding enter/leave mouse events
A first approach at adding mouseenter/mouseleave events for react-native-windows. We may eventually want to considering adding a specific event plugin for this (to implement behavior like "capture" without "bubbling").

Fixes #775
2016-10-27 23:10:52 -04:00
Kevin VanGelder 8c47f4031c feat(Shared): UIManager Migration (#831)
* UIManager Migration

* initial work migrating Network module

* Progress on Networking Module

* more progress on Network module

* fix csproj

* migrating more devsupport

* migrating more devsupport

* Migrate DevOptionDialog

* migrated Progress Dialog

* migrated RedBoxDialog

* migrated WebSocketJavaScriptExecutor

* migrate DevSupportManager

* saved changes from last commit -- oops.

* implement feedback from @rozele

* a little more cleanup

* switched to in-memory settings strategy

* tweaks to try to fix AppVeyor build

* fixed build path for Facebook.CSSLayout

* remove unwanted comment

* migrating easy UIManager files

* migrating moderate UIManager files

* refactored Networking module to shared per @rozele feedback

* starting migration of pointers in touch

* Touch basics needs circular references

* update csproj

* migrated difficult UIManager files

* implemented more feedback from @rozele

* fix(Linking): Adds `getInitialUrl` and `url` events to LauncherModule (#798)

Using the ProtocolActivatedEventArgs, this changeset adds the `getInitialUrl` API implementation for the Linking module (aka the LauncherModule in native code) and the `url` event, which is called each time the app is activated with a new protocol URI.

Fixes #301
Fixes #687

* imlemented more @rozele feedback

* implement @rozele feedback

* implemented feedback from @matthargett

* removed another unnecessary if/def

* small tweaks to wrap up UIModule migration

* migrated uimanager tests - all but 2 pass

* Revert "Merge pull request #787 from infinitered/shared-project-network"

This reverts commit 4b781831c6, reversing
changes made to 8da18242be.

* Revert "merge upstream"

This reverts commit 1fd5fdffac, reversing
changes made to 249c6f7e9d.

* tweaks for tests

* tweak I18N setting read

* fix spacing changes

* adding touch handling

* diverge BaseViewManager for UWP/WPF

* implemented feedback from @rozele

* added reactprop to no-op todo comments

* allow ReactShadowNode dirty override for Net46

* more tweaks per feedback

* added missing files

* add csproj change

* abstracted platform specific window finding code from UIManagerModule

* cleanup

* implemented @rozele feedback for touch

* changes per @rozele feedback

* cleanup NativeViewHierarchyManager

* cleanup I18N imports

* added doc comments for new NullLoggingActivityBuilder method

* diverge UWP and Net46 UIManagerModule

* cleanup
2016-10-27 20:58:12 -04:00
Matt Hargett 454dfc19da Embed ChakraCore as submodule and integrate it into the build (#817)
* Add ChakraCore as submodule, pinned to their release/1.3 branch
* Add wrapper ChakraCore project to ReactNative solution, delegating via msbuild
* Use ChakraCore.dll instead of Chakra.dll for non-UWP builds
2016-10-25 13:27:31 -04:00