Commit Graph

5041 Commits

Author SHA1 Message Date
Dimitar Tachev
01fab68e58 feat: support intent replacement in the android activity (#5337) 2018-01-29 16:54:07 +02:00
Teodor Dermendjiev
e69af8dda9 update(launch screen): Add iPhone X launch screens (#5163) 2018-01-29 13:58:14 +02:00
Stanimira Vlaeva
1c78e4784c feat(ios): fire onDisplayed event when first frame is ready to be displayed (#5344)
* feat: add a 'profiling: lifecycle' to track startup times

* feat: log when displayed event fires

* feat(ios): fire onDisplayed event when first frame is ready to be
displayed
2018-01-29 13:47:35 +02:00
radeva
5bae124604 chore: update waffle link for ios runtime (#5334) 2018-01-26 09:29:45 +02:00
Panayot Cankov
2166d1e415 feat(observable): Implement observable .once (#5309)
Node has a handy one-liner method on its EventEmitter called "once".
It is similar to "on", but fires a single time and automatically unsubscribes.
2018-01-25 11:38:27 +02:00
Alexander Djenkov
9d7f0e5315 fix(frame): recreate frame if no cached one found on app resume #5318 (#5330) 2018-01-25 11:37:47 +02:00
Alexander Djenkov
af934ccabf feature(frame): introduce src property (#5320) 2018-01-25 10:57:13 +02:00
Alexander Vakrilov
923d48b23a fix: layoutParent crash with ProxyViewContainer (#5315) 2018-01-24 18:27:00 +02:00
Nikolay Tsonev
9eb341bcb5 adding backStackEntry example, including missing import md file text field (#5319) 2018-01-24 15:28:58 +02:00
Alexander Vakrilov
b492996647 fix(layouts): Set automaticallyAdjustsScrollViewInsets (#5311) 2018-01-23 17:53:31 +02:00
Vasil Chimev
58d61caf59 refactor(image-source): throw if source is not a correct native instance (#5273)
* refactor(image-source): throw if source is not a correct native instance

* refactor(image-source): fromNativeSource and setNativeSource methods

* refactor: update image-source.d.ts file

BREAKING CHANGE:

Change the return type of `setNativeSource` method from `boolean` to `void`.
2018-01-23 16:57:29 +02:00
tbozhikov
1f77301453 chore: update Readme with the common NS diagram (#5281) 2018-01-22 11:35:39 +02:00
tbozhikov
3ee4509080 chore: update community files (#5302) 2018-01-22 09:53:39 +02:00
radeva
01d79ba54e chore(readme): link more resources; update cli badge link (#5305)
- add links to Playground, Marketplace, forum
- update CLI badge to point to CLI project
- add link to Slack in Get Help section
2018-01-22 09:51:44 +02:00
Alexander Vakrilov
a0378e8b74 Update package.json 2018-01-19 17:26:01 +02:00
Alexander Vakrilov
8d59cc4de6 fix: cleanup modaltest paths (#5300) 2018-01-19 16:21:09 +02:00
radeva
87703ce3ea chore: link waffle.io board from README (#5239)
In order to make our working boards more visible, I'm adding links to the corresponding waffle.io boards in the Repositories section.
2018-01-19 10:23:05 +02:00
Vasil Chimev
6850ec9580 docs: add CHANGELOG for 3.4.0 (#5195) 2018-01-19 10:22:52 +02:00
Hristo Hristov
3114a9d7b1 migrated JS files toTS 2018-01-18 14:02:36 +02:00
Hristo Hristov
016c64fe04 showModal & closeModal can be called on any View
fix livesync implementation to be compatible with 3.4 and to replace mainEntry for 4.0 when root is not Frame
some refactoring of page.ios in order to allow showing multiple modal dialogs
2018-01-18 13:34:25 +02:00
Hristo Hristov
9dd3e1a807 Fix crash with nested frames navigation when aactivity is recreated. We now check if frame native view is atached to window before running navigation.
Livesync now recreates the main page instead of calling frame.navigate
2018-01-15 18:07:20 +02:00
Hristo Hristov
3f2f5f41f0 Fix page styleScope for iOS 2018-01-12 12:43:55 +02:00
Hristo Hristov
ef86addd6d Fix Page to be styleScope if frame is not 2018-01-12 10:23:54 +02:00
Hristo Hristov
8a428b011a Small perf improvement in fromObject 2018-01-11 13:49:52 +02:00
Hristo Hristov
1e690a7b83 Add more typings to methods 2018-01-11 13:37:30 +02:00
Hristo Hristov
18fe9392d6 Fix memory leak in edit-text.android
Fix fromObjectRecursive to doesn't override source object
2018-01-11 13:25:03 +02:00
Hristo Hristov
82f081d603 fix android keyboard 2018-01-10 17:45:08 +02:00
Hristo Hristov
3384112ce8 When application start is called we don't set Frame to be styleScope
Added requestLayout for TextView
Round desiredSize in nativeMeasure
2018-01-09 13:17:50 +02:00
Hristo Hristov
8df8d754ab Fix Enter key not moving caret on next line in TextView for android
Fixes #5121
2017-12-20 10:31:39 +02:00
Hristo Hristov
058a216ac9 Move styleScope from Page to View
Fix image-source test for API 27
setupAsRootView now makes the component styleScope
set css, addCss & addCssFile makes view to be styleScopeHost which cannot be overriden later from parent
Android modals now call setupAsRootView
Small fixes on ios layouts
launch event fired in andriod too
Moved some requestLayout calls to ios files where they belongs
2017-12-19 16:35:15 +02:00
Hristo Hristov
63ab46eb2a Layout improvements 2017-12-15 17:11:51 +02:00
Hristo Hristov
33cd058718 Call loaded/unloaded on the rootView when application is resumed/suspended
Remove dead code from frame.ios
2017-12-15 15:26:23 +02:00
Hristo Hristov
4e74c37313 Fix android crash TabViewItem canBeLoaded was true even when TabView was destroyed
Fix android crash modal view was not destroyed even though his dialog was
2017-12-15 13:08:15 +02:00
Hristo Hristov
365d48550f Revert Page.android onContentChange to addViewToNativeVisualTre due to Angular issue with ProxyViewContainer 2017-12-15 13:08:15 +02:00
Hristo Hristov
c0d3a4048d Fix ListView itemClick for android 2017-12-15 13:08:15 +02:00
Hristo Hristov
a416fa4fb6 Fix TabViewItem loading
Fix showModal not on full screen
2017-12-15 13:08:15 +02:00
Hristo Hristov
0abfb1493c Fix crash on API17 and API21-25 2017-12-15 13:08:15 +02:00
Hristo Hristov
ac04ede97e Implemented showModal on View 2017-12-15 13:08:15 +02:00
Hristo Hristov
04c1132541 Fix broken merge conflict 2017-12-15 13:06:34 +02:00
Hristo Hristov
28f1a5875e Fix crash on android where we queue few back navigations an exception is thrown.
Fix https://github.com/NativeScript/NativeScript/issues/4986
2017-12-15 13:06:34 +02:00
Hristo Hristov
edb0eb1721 Bring back ios property of CustomLayoutView 2017-12-15 13:06:34 +02:00
Hristo Hristov
1778ba1eb9 Fix showModal on iOS 2017-12-15 13:06:34 +02:00
Hristo Hristov
b489e52a5f Fix iOS 11 titleView misplacement in ActionBar 2017-12-15 13:06:34 +02:00
Hristo Hristov
2e2467ce5d Fixed two android tests to account for small emulator screens and floating density 2017-12-15 13:06:34 +02:00
Hristo Hristov
501b954c47 Fix issue with angular not rendering... 2017-12-15 13:06:34 +02:00
Hristo Hristov
a35e603d85 Fix to always get the same bounds no matter if we are shown modally or not (for iOS).
Remove code that moves actionBar when there is incoming call. We now depend on the autolayout to position us correctly.
_addView, _removeView won't request layout for iOS.
LayoutBase: addChild & remvoeChild will request layout.
ContentView: content change will request layout.
2017-12-15 13:06:34 +02:00
Hristo Hristov
53b92ad83a Fix broken TS 2017-12-15 13:06:34 +02:00
Hristo Hristov
5bcccd28a8 Fix: when page disappears because parent viewController is removed (e.g. selecting different tab in TabBar) our navigation stack was incorrectly removing backstack entry. This fix may not work if the tab is hosted in Page but it is unlikely that someone will host Page->TabView->Frame->Page 2017-12-15 13:06:34 +02:00
Hristo Hristov
1ee686d9bc Remove list-view.ios contentInsetAdjustmentBehavior (it should be defult) 2017-12-15 13:06:34 +02:00
Hristo Hristov
2a10b7a220 Remove public iOS types from view.d.ts 2017-12-15 13:06:34 +02:00