Skip to content

fix: allow subclass to override createFormattedTextNative - #9334

Merged
NathanWalker merged 2 commits into
NativeScript:masterfrom
Akylas:createFormattedTextNative
Apr 18, 2021
Merged

NathanWalker merged 2 commits into
NativeScript:masterfrom
Akylas:createFormattedTextNative

Conversation

@farfromrefug

Copy link
Copy Markdown
Collaborator

This PR adds move the generation of the native FormattedString to a class method so that it can be overriden by subclasses and plugins.
This is used, for example, by my @nativescript-community/text to override the default implementation for all TextBase to make it faster and add more functionnalities.

@cla-bot cla-bot Bot added the cla: yes label Apr 15, 2021
@NathanWalker
NathanWalker merged commit b29e145 into NativeScript:master Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants