跨平臺移動開發,NativeScript 1.4.0 發布
NativeScript 可以使用 Javascript,CSS, XML 創建真正的 Native 跨平臺應用,支持 iOS Android,NativeScript 將您的跨平臺代碼翻譯成目標平臺的代碼。
UI 使用 XML 描述,CSS 樣式,在編譯時將 UI 轉化成本地原生代碼,最終得到正在的 Native 原生應用。
重大改進
(#774) Animation 類不再包含完成屬性,因為一個動畫可以在多個時間播放。
舊版代碼 (JavaScript):
animation1.play().finished.then(function () { console.log("Finished"); });
New Code (JavaScript):
animation1.play().then(function () { console.log("Finished"); });
Old Code (TypeScript):
animation1.play().finished.then(()=>console.log("Finished"));
New Code (JavaScript):
animation1.play().then(()=>console.log("Finished"));
Bug 修復
-
(#904) Navigate clearHistory sometimes crashes Android with a null pointer exception
</li> -
(#901) TypeError: using example from docs
</li> -
(#893) isLoaded is set before calling applyStyleFromScope
</li> -
(#873) The Repeater is re-creating its children multiple times during initialization.
</li> -
(#867) utils.ad.async method is not implemented
</li> -
(#857) Android action dialog actions are not shown if message is provided
</li> -
(#851) takePicture crashes iOS Simulator
</li> -
(#848) web-view loads local data with UTF-8
</li> -
(#843) [iOS] Page is layouted as there is no NavigationBar
</li> -
(#839) Page background now spans under ActionBar
</li> -
(#837) Blank Text attribute on SearchBar crashes app
</li> -
(#835) iOS animations combining several affine transform properties set only the first property on our view after they finish.
</li> -
(#832) Transformations such as scale, translate, rotate won't be incorrectly affected by the layout
</li> -
(#819) WebView check for http/https should be case insensitive
</li> -
(#817) timers.clearInterval doesn't work on Android
</li> -
(#814) Ternary if and parenthesis makes UI not update
</li> -
(#808) Segmentedbar selectedIndexChanged doesn't work
</li> -
(#805) Missing console.dump on ios...
</li> -
(#793) Label.backgroundColor cannot be animated in iOS.
</li> -
(#790) Cannot use number values in EditableText's hint field
</li> -
(#777) ios Border-radius on Label
</li> -
(#774) If an Animation instance is played more than once, the same promise is resolved each time leading to unexpected results.
</li> -
(#772) Placeholder with an id attribute doesn't call creatingView handler
</li> -
(#763) 1.3 - Can not build new project due to missing App_Resources
</li> -
(#759) Android animations that animate a property to its current value do not run.
</li> -
(#756) Nordic characters: "???"
</li> -
(#744) iOS 9 issues
</li> -
(#732) Closing an alert on the iPad crashesh the whole app.
</li> -
(#605) Guard for "undefined" in Observable's on and off
</li> </ul>新特性
-
(#890) Implement Page background option to span under status bar (iOS only)
</li> -
(#766) Rename cssClass property to just class
</li> -
(#740) Modules does not support iOS9
</li> -
(#713) ReturnKeyType Listener
</li> -
(#283) Cross platform way to clear history
</li> -
(#241) Set base URL in WebView to be able to load resources
</li> </ul>下載:
- </li>
- </li>
- </li>
- </li>
- </li>
-
tns-template-hello-world-1.4.0.tgz
</li> </ul>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-