mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
This commit is contained in:
@@ -604,7 +604,7 @@ export function test_BindingToDictionaryAtAppLevel() {
|
||||
pageViewModel.set("testProperty", testPropertyName);
|
||||
const dict = {};
|
||||
dict[testPropertyName] = expectedValue;
|
||||
appModule.resources["dict"] = dict;
|
||||
appModule.getResources()["dict"] = dict;
|
||||
|
||||
const testFunc = function (views: Array<View>) {
|
||||
const testLabel = <Label>(views[0]);
|
||||
@@ -629,7 +629,7 @@ export function test_BindingConverterCalledEvenWithNullValue() {
|
||||
const testPropertyValue = null;
|
||||
const expectedValue = "collapsed";
|
||||
pageViewModel.set("testProperty", testPropertyValue);
|
||||
appModule.resources["converter"] = function (value) {
|
||||
appModule.getResources()["converter"] = function (value) {
|
||||
if (value) {
|
||||
return "visible";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user