New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core-modules): implement createNativeView and initNativeView for all components #6102
Merged
Merged
Changes from 34 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ac28aed
define and use nativeTextViewProtected for all text configuration rel…
farfromrefug bb67da7
separate createNativeView from nativeview delegate creations
farfromrefug 194231e
Merge branch 'master' of github.com:NativeScript/NativeScript into mo…
farfromrefug 5839cb5
fixed lint error
farfromrefug 5bad5f6
button refactoring
farfromrefug db752b1
better that way?
farfromrefug 24b8f38
fixed ios view creation as createNativeView is not fully supported on…
farfromrefug 0fb47fa
Merge branch 'master' of github.com:NativeScript/NativeScript into mo…
farfromrefug 58fc92c
prevent undefined error
farfromrefug a2f914a
update based on comments
farfromrefug 1dbc942
Merge branch 'master' of github.com:NativeScript/NativeScript into mo…
farfromrefug 48f7b66
fixed missing delegate call on ios
farfromrefug 2ae1133
refactored all UI widgets for better use of createNativeView/initNati…
farfromrefug e20a8c5
Merge branch 'master' into module_refactoring
farfromrefug 5a5b1c6
cleanup after comments
farfromrefug a3d1411
Merge branch 'module_refactoring' of github.com:Akylas/NativeScript i…
farfromrefug 39a57c1
fixed webview to use nativeviewprotected like other widgets
farfromrefug 29dc093
cleanup after comment
farfromrefug d3b1f8d
Merge branch 'master' into module_refactoring
MartoYankov 1295fa3
fix tslint errors from merge conflict
MartoYankov 7c17708
test fixes
farfromrefug 5b08639
fix android slider native view owner assignment
MartoYankov 2038a10
ensure nativeViewProtected is created
farfromrefug e68a22d
Merge branch 'module_refactoring' of github.com:Akylas/NativeScript i…
farfromrefug 4fabdac
fixed _map being created too late
farfromrefug 9908b4b
call _addView first so that nativeViewProtected is created
farfromrefug 4baadce
Merge branch 'master' into module_refactoring
farfromrefug e80f1cd
make sure nativeViewProtected is never “cleared”. That way it is setu…
farfromrefug 5165432
fixed tests for iOS now that we use createNativeView
farfromrefug 8f59cb8
now that we use createNativeView the order is important and setupUI m…
farfromrefug dfbc3d1
refactoring. Better that way?
farfromrefug aef4b30
isLayoutValid for iOS now that we use createNativeView
farfromrefug 439e825
better that way
farfromrefug 81dded9
updateScrollBarVisibility fix
farfromrefug 4ff80b9
Merge branch 'master' into module_refactoring
MartoYankov 9dfafff
better to call this in initNativeView
farfromrefug 9048879
oops!
farfromrefug ce76f94
refactoring
farfromrefug e549485
not needed as we have ```createNativeView```
farfromrefug b8113d8
refactor: call setupUI on components created with constructor
MartoYankov af042ab
call setupUI on dialog components for iOS only
MartoYankov 8d39e65
move setupAsRootView before the modal is shown
MartoYankov File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
AndroidButton
type is assigned insideinitializeClickListener()
, so after we moved it toinitNativeView()
, this is not declared. I think it will be safe to use theandroid.widget.Button
constructor directly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will actually define AndroidButton. I think the point is not to always have to go through
android.widget.Button
?Might be faster?