react-native-windows 0.0.0-canary.642 → 0.0.0-canary.643

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -364,9 +364,9 @@ struct CompTextHost : public winrt::implements<CompTextHost, ITextHost> {
364
364
  }
365
365
 
366
366
  //@cmember Get the character to display for password input
367
- HRESULT TxGetPasswordChar(_Out_ TCHAR *pch) override {
368
- assert(false);
369
- return {};
367
+ HRESULT TxGetPasswordChar(_Out_ wchar_t *pch) override {
368
+ *pch = L'\u2022';
369
+ return S_OK;
370
370
  }
371
371
 
372
372
  //@cmember Get the accelerator character
@@ -614,6 +614,20 @@ void WindowsTextInputComponentView::updateProps(
614
614
  propBits |= TXTBIT_CHARFORMATCHANGE;
615
615
  }
616
616
 
617
+ if (oldTextInputProps.secureTextEntry != newTextInputProps.secureTextEntry) {
618
+ propBitsMask |= TXTBIT_USEPASSWORD;
619
+ if (newTextInputProps.secureTextEntry) {
620
+ propBits |= TXTBIT_USEPASSWORD;
621
+ }
622
+ }
623
+
624
+ if (oldTextInputProps.multiline != newTextInputProps.multiline) {
625
+ propBitsMask |= TXTBIT_MULTILINE | TXTBIT_WORDWRAP;
626
+ if (newTextInputProps.multiline) {
627
+ propBits |= TXTBIT_MULTILINE | TXTBIT_WORDWRAP;
628
+ }
629
+ }
630
+
617
631
  /*
618
632
  if (oldTextInputProps.textAttributes.foregroundColor != newTextInputProps.textAttributes.foregroundColor) {
619
633
  if (newTextInputProps.textAttributes.foregroundColor)
@@ -658,13 +672,6 @@ void WindowsTextInputComponentView::updateProps(
658
672
  m_element.IsReadOnly(!newTextInputProps.editable);
659
673
  }
660
674
 
661
-
662
- if (oldTextInputProps.multiline != newTextInputProps.multiline) {
663
- m_element.TextWrapping(newTextInputProps.multiline ? xaml::TextWrapping::Wrap : xaml::TextWrapping::NoWrap);
664
- m_element.AcceptsReturn(newTextInputProps.multiline);
665
- }
666
-
667
-
668
675
  if (oldTextInputProps.selection.start != newTextInputProps.selection.start ||
669
676
  oldTextInputProps.selection.end != newTextInputProps.selection.end) {
670
677
  m_element.Select(
@@ -831,10 +838,10 @@ std::string WindowsTextInputComponentView::GetTextFromRichEdit() const noexcept
831
838
  auto str = BstrToStdString(bstr);
832
839
 
833
840
  // JS gets confused by the \r\0 ending
834
- if (*(str.end() - 1) == '\0') {
841
+ if (str.size() > 0 && *(str.end() - 1) == '\0') {
835
842
  str.pop_back();
836
843
  }
837
- if (*(str.end() - 1) == '\r') {
844
+ if (str.size() > 0 && *(str.end() - 1) == '\r') {
838
845
  str.pop_back();
839
846
  }
840
847
  SysFreeString(bstr);
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.0.0-canary.642</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.0.0-canary.643</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
16
16
  <ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>71ca215e58db4f6b9b79be31b1320ab4c05714f1</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>d1c012c1555d3d9e61083291300219fd5686c33b</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.0.0-canary.642",
3
+ "version": "0.0.0-canary.643",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",