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

718 Коммитов

Автор SHA1 Сообщение Дата
Kevin VanGelder 393334bd71 initial migration of Animated (#766) 2016-10-11 15:53:14 -04:00
Kevin VanGelder 2ba50b2e5e initital migration of UIManager (#765) 2016-10-11 15:53:05 -04:00
Eric Rozell ff99a1cbdf fix(ScrollView): 'scrollEnabled' prop should only disable scroll, not touch (#767)
Using the IsEnabled property disabled touch in addition to scroll.  We'll need to keep some state about the current horizontal scroll status, but we can easily work around this by just disabling horizontal and vertical scroll.

Fixes #764
2016-10-11 14:28:11 -04:00
Eric Rozell da2e62cf83 fix(Chakra): Throw less cryptic error message for invalid bundle (#762)
Currently, when a bundle has not been created properly using the `react-native bundle` command, an exception along the lines of 'Argument can not be null' is thrown. Now we have a more specific error message along the lines of "Cannot resolve '__fbBatchedBridge' ...".

Fixes #719
2016-10-11 10:18:03 -04:00
Eric Rozell e5670ae934 fix(Image): view.Background.ImageSource is not always valid OnLoad (#761)
Getting null reference exceptions due to a condition where the ImageSource is not always set on the ImageBrush.  Instead, gathering the image metadata directly from the OnLoad event.
2016-10-10 21:32:38 -04:00
Kevin VanGelder 4b656c2337 feat(Portable): Migrate most of Modules/Core and portions of DevSupport (#760)
* migrate most of Modules/Core and portions of DevSupport

* fix diff
2016-10-10 20:06:22 -04:00
Kevin VanGelder c21c76cf16 feat(Portable): Migrate Timing & Dependencies (#755)
* migrated timing to shared project

* minor tweaks to improve (but not fix) tests

* fixed UWP build error

* fixed migrated tests

* migrated ReactContextNativeModuleBase tests

* migrated ReactContextNativeModuleBase tests

* implemented @rozele and @matthargett test fixes

* cleanup for PR

* fix IsOnThreadCore check

* simplify OnDispatch watcher
2016-10-10 17:16:44 -04:00
Eric Rozell 6f244af6c9 fix(Image): Add width/height/url to OnLoad event (#757)
Adds expected parameters to event data for image OnLoad event.

Fixes #754
2016-10-10 17:16:25 -04:00
Eric Rozell 269e286e62 fix(FrameDispatch): All operations on Rendering event should catch exceptions (#756)
Previously, failures on the CompositionTarget.Rendering event could crash the app. With these changes, each frame callback has an exception handling wrapper.

Fixes #750
2016-10-10 09:57:29 -04:00
Eric Rozell 8aaa0b1559 fix(BundleConfig): MainPage.cs should disable dev options for ReleaseBundle config (#753)
Fixes #692
2016-10-07 13:51:35 -04:00
Adam Comella 726d113940 Enable Images to have muliple <Text> ancestors (#749)
Prior to this change, Images with one <Text> ancestor were supported:

```
<Text>
  <Image />
</Text>
```

But Images with multiple <Text> ancestors resulted in an exception:

```
<Text>
  <Text>
    <Image />
  </Text>
</Text>
```

This change fixes the latter scenario.

The problem was that some code assumed that it would only receive Inlines when actually it could also receive UIElements.
2016-10-07 10:04:11 -04:00
Eric Rozell 9070e9967e fix(ChakraJavaScriptExecutor): Ensure JS arguments are not GC'd (#752)
A number of users were seeing AccessViolationExceptions, especially in Release builds, where JS strings were being GC'd prior to use. I suspect this is because we need to increment the ref count of the marshalled arguments so they are not collected before use as call arguments.

Fixes #751
2016-10-07 10:03:57 -04:00
Eric Rozell 6ae4661404 fix(SplitView): Ensure clicking outside SplitView pane closes the pane (#747)
A recent change to the touch handler to support cases where overlays that did not support any pointer events were used (so the underlying React view that did support pointer events could be reached) ignored the fact that some clicks simply don't belong to the React hierarchy (e.g., native app overlays, as is the case for SplitView).

This change first checks that the original pointer target actually belongs to the React before calculating the target using pointer events logic.

Fixes #746
2016-10-06 15:19:00 -04:00
Gant Laborde 66414568ee move DevSupport modules to shared (#742) 2016-10-06 12:12:25 -04:00
Eric Rozell 7d7dd3abf2 fix(ReactInstance): Set bridge instance before calling LoadScript (#745)
JavaScript may call native behaviors prior to the `_bridge` variable being set in `ReactInstance`, which would be invoked in the initial call to `FlushedQueue` following the call to run the bundle.

This change set ensures the `_bridge` is set before the bundle is loaded.

Fixes #744
2016-10-06 12:11:19 -04:00
Kevin VanGelder 3cde73749a feat(Portable): Combined Project Structure & First Example (#740)
* initial .Net46 project

* attempted merge of matt's net46 tests branch

* completed tracer migration

* tweaks per @rozele feedback

* re-add Shared reference to .Net46.Tests project

* removed NUnit from Universal Tests (again)

* restructured and documented Net46 null objects and added debug flag to Net46 project so tests will pass

* add documentation requirement to all build configurations and removed unnecessary documentation
2016-10-05 16:43:03 -04:00
Eric Rozell 4f089d8bb8 feat(Promise): Adding userInfo to reject error object (#732)
Using System.Exception.Data IDictionary, users can add arbitrary data to a "userInfo" property on the error object.

Fixes #730
2016-10-05 11:27:25 -04:00
Eric Rozell f3f19311e7 fix(TouchHandler): Consider all possible views for click target (#736)
Previously, we were only considering the hierarchy from the pointer "OriginalSource" in the pointer events calculations. Unfortunately, this meant that if a transparent overlay with "box-none" or "none" pointer events was set, as is the case for "react-native-drawer", then no alternative targets would be considered. This change uses VisualTreeHelper.FindElementsInHostCoordinates to consider all possible targets.

Fixes #715
2016-10-03 17:03:15 -04:00
Eric Rozell ad8c9efedd chore(Examples): point at latest examples commit. 2016-10-03 15:56:03 -04:00
Kevin VanGelder a15c26d8a5 feat(Portable): Migrate collections test (#735)
* initial building Shared project

* Base working shared project and tests

* remove Any CPU references

* Modify react-native CLI solution template to include shared project

* remove duplicated files in ReactNative.Shared

* fixed Any CPU configuration agaain

* removed extraneous copy of file

* Fix proj to match filesystem

* fixed build configurations in VS and added NUnit3.TestAdapter

* initial migration of bridge and reflection to new shared project

* fix(tests): Quick fix to ensure all tests are run for Debug configurations.

* cleanup three unneded EoF newlines

* initial migration of chakra, common, and collections - brings us up to par with matthargett/shared-project

* migrated collections test

* removed unnecessary Facebook.CSSLayout reference
2016-10-03 14:40:35 -04:00
Kevin VanGelder 47f16d2a6f feat(Portable): Migrate Bridge, Chakra, Common, Collections, and Reflections to Shared Project (#734)
* initial building Shared project

* Base working shared project and tests

* remove Any CPU references

* Modify react-native CLI solution template to include shared project

* remove duplicated files in ReactNative.Shared

* fixed Any CPU configuration agaain

* removed extraneous copy of file

* Fix proj to match filesystem

* fixed build configurations in VS and added NUnit3.TestAdapter

* initial migration of bridge and reflection to new shared project

* fix(tests): Quick fix to ensure all tests are run for Debug configurations.

* cleanup three unneded EoF newlines

* initial migration of chakra, common, and collections - brings us up to par with matthargett/shared-project

* removed unnecessary Facebook.CSSLayout reference
2016-10-03 14:07:25 -04:00
Eric Rozell 683b990681 fix(PasswordBox): Fixes minor bug with keyboard type on PasswordBox (#733)
PasswordBox only supports 'number-pad' and 'password' (i.e., InputScopeNameValue.NumericPin and InputScopeNameValue.Password).

Fixes #726
2016-10-03 13:30:02 -04:00
Eric Rozell 0f4db99204 fix(tests): Quick fix to ensure all tests are run for Debug configurations. (#728) 2016-10-03 11:41:04 -04:00
Gant Laborde 6bf8e5ef10 UIManager Annotations folder moved to shared (#731) 2016-10-03 11:40:51 -04:00
Gant Laborde b9690a5275 feat(Portable): Start shared project - Minimal (#723)
* initial building Shared project

* Base working shared project and tests

* remove Any CPU references

* Modify react-native CLI solution template to include shared project

* remove duplicated files in ReactNative.Shared

* fixed Any CPU configuration agaain

* removed extraneous copy of file

* Fix proj to match filesystem

* fixed build configurations in VS and added NUnit3.TestAdapter
2016-09-30 23:10:59 -04:00
Eric Rozell 9c9d88e1a7 fix(AsyncStorage): ensure getAllKeys from filenames are translated (#727)
The mapping used from key to filename was not used to convert from filename back to key. Additionally, adds some optimizations to reduce allocations for AsyncStorage.

Fixes #724
2016-09-29 16:05:27 -04:00
Eric Rozell c28821e9a1 chore(Examples): Upgrade to latest examples branch. 2016-09-27 13:00:01 -04:00
Eric Rozell 76a20ae1b4 chore(NPM): bumping version to 0.35.0-rc.0 2016-09-27 12:18:16 -04:00
Eric Rozell 788061fde2 fix(BaseViewManager): Adds testID native prop (#722)
Adds implementation of 'testID' prop, mapping it to the automation ID for the XAML dependency object.

Fixes #717
2016-09-27 11:05:29 -04:00
Eric Rozell 73418ced0f fix(ReactContext): Dispose path for ReactContext created deadlock (#712)
Basic overview of the deadlock:
1) CSS layout operation in progress
2) Text node measurement started on native module thread
3) ReactContext disposed on dispatcher thread
4) ReactContext disposal blocks on completion of native module thread
5) Native module thread blocks on dispatcher operation for text measurement
6) We have deadlock

The best way to get around this is to not block from the native module thread, but this is a limitation we haven't figured out how to work around yet.  In the meantime, it actually makes sense to make the teardown process for the React context asynchronous, which is what this changeset does.

Fixes #702
2016-09-26 19:58:05 -04:00
Eric Rozell 35e3160c5f fix(Packager): Adds platform-specific files to satisfy packager (#721)
A handful of files need some boiler plate "not implemented" wrappers to prevent the packager from throwing an error due to a missing module.

Fixes #720
2016-09-26 15:38:02 -04:00
Eric Rozell ff42ad6bd8 fix(NavigationExperimental): Add header with proper mapping (#716) 2016-09-26 13:31:33 -04:00
Eric Rozell 3e6b8efacd Update README.md 2016-09-22 11:37:58 -04:00
Eric Rozell fe9cf241ec Delete CODE_OF_CONDUCT.md 2016-09-22 11:36:04 -04:00
Eric Rozell 9896aaa35b fix(test): Fixing broken unit test from RN config changes. 2016-09-19 12:47:11 -04:00
Eric Rozell 05b5251261 fix(DependencyObjectExtensions): change visibility of necessary methods (#708)
The methods made public are needed to create third party modules and components.

Fixes #707
2016-09-19 11:44:27 -04:00
Eric Rozell 81ec9ab115 fix(Devtools): Make devtools a no-op (#706)
Getting a lot of issues filed because of exceptions thrown from WebSocket module. This tend to come from the devtools setup which no one (currently) seems to be using for Windows.  We can delete the added file at some point when devtools should be enabled for Windows.

Fixes #701
2016-09-19 09:24:31 -04:00
Eric Rozell 2fb017106f fix(Platform): Adds 'select' helper to Platform for UWP. (#705)
Fixes #704
2016-09-19 08:49:45 -04:00
Eric Rozell a8695888b7 style(Bridge): minor cosmetic stuff for NativeModuleRegistry 2016-09-14 16:00:12 +03:00
Eric Rozell e808cd3c0f chore(upgrade): Upgrade to RN v0.34.0-rc.0 2016-09-14 15:27:24 +03:00
Eric Rozell 05d1f11cd7 chore(Examples): pointing to latest examples branch 2016-09-14 14:26:33 +03:00
Eric Rozell 6efa8c0147 chore(UIExplorer): point to latest examples branch. 2016-09-14 11:02:56 +03:00
Eric Rozell 89c5ff01f4 fix(Playground): Disable dev support for ReleaseBundle configuration (#695)
We don't want to disable dev support for all Release builds (the 'Release' configuration still expects to communicate with the bundle server). Instead, we'll just disable it for the ReleaseBundle configuration.

Towards #692
2016-09-12 13:45:52 +03:00
Eric Rozell c280bb5638 Delete README.md 2016-09-12 13:44:00 +03:00
Eric Rozell c107b1664c fix(ChakraBridge): ChakraBridge build failing for Release|(ARM & x64) (#694)
.vcxproj was missing the USE_EDGEMODE_JSRT definition. Added for both of those configurations.

Fixes #649, fixes #691
2016-09-12 04:11:40 -04:00
Eric Rozell f07540a479 test(ArgumentException): fixing parameter name checks for ArgumentNullException tests 2016-09-09 09:30:14 -04:00
Eric Rozell eec158bcce fix(Image): Reverting default behavior to use UriSource for images. (#682)
There seems to be a problem with using BitmapImage.SetSourceAsync. Occasionally, when the many images are being loaded simultaneously, the app will freeze/crash without throwing an exception.  The culprit seems to be the UI thread hanging in the BitmapImage.SetSourceAsync method. To get around this issue, I've reverted to using the UriSource property for BitmapImage. We still have open issues to implement prefetch, which is what @phongcao is working on and should be done with in the coming weeks.

Fixes #672
2016-09-09 09:06:17 -04:00
Eric Rozell 66a6c3e5e8 chore(NPM): Adds .npmignore files for Windows builds (#681)
Fixes #675
2016-09-08 12:32:35 -04:00
Eric Rozell 342221f1b5 fix(package.json): Update react dependency. (#680) 2016-09-08 12:32:06 -04:00
Eric Rozell 8f3f8713d5 fix(Image): Catch Uri loading exceptions for Images (#668)
FileNotFoundException was not being caught, causing app crashes when URIs for images did not exist.

Fixes #665
2016-09-08 12:31:55 -04:00