Skip to content
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

TypeError: using <Placeholder> example from docs #901

Closed
bradmartin opened this issue Oct 7, 2015 · 2 comments
Closed

TypeError: using <Placeholder> example from docs #901

bradmartin opened this issue Oct 7, 2015 · 2 comments

Comments

@bradmartin
Copy link
Contributor

Samsung Tab (4.4.2) -

Error: TypeError: android.widget.LabelView is not a function...

 var placeholder = require("ui/placeholder");
   function creatingView(args) {
var nativeView = new android.widget.LabelView(args.context);
nativeView.setText("Native");
args.view = nativeView;
 }
exports.creatingView = creatingView;

With the sample XML inside a

   <StackLayout>
                <Placeholder creatingView="creatingView"/>
              </StackLayout>
@bradmartin bradmartin changed the title TypeError: using placeholder docs code on Android TypeError: using <Placeholder> example from docs Oct 7, 2015
@enchev enchev added this to the 1.4.0 milestone Oct 8, 2015
@enchev
Copy link
Contributor

enchev commented Oct 8, 2015

Hey @bradmartin,

Thanks for reporting the issue!

This is already fixed in our tests and the docs will be regenerated for the release.

Please use TextView instead LabelView.

HTH

@enchev enchev closed this as completed Oct 8, 2015
FrancoisCamus added a commit to FrancoisCamus/docs that referenced this issue Feb 11, 2016
LabelView doesn't work.

This is linked to NativeScript/NativeScript#901

Why is LabelView not supported?
ErjanGavalji pushed a commit to NativeScript/docs-v7 that referenced this issue Feb 15, 2016
LabelView doesn't work.

This is linked to NativeScript/NativeScript#901

Why is LabelView not supported?
@lock
Copy link

lock bot commented Aug 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants