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

String passing into text field #3

Open
cpsiaki opened this issue Feb 5, 2016 · 2 comments
Open

String passing into text field #3

cpsiaki opened this issue Feb 5, 2016 · 2 comments

Comments

@cpsiaki
Copy link

cpsiaki commented Feb 5, 2016

I can't seem to pass a string variable in state to the text prop of MarqueeLabel. Is this possible?

                    <MarqueeLabel style={styles.marqueeLabel}
                        text={this.state.trending}
                        marqueeType={2}
                        scrollDuration={10.0}
                        fadeLength={0.0}
                        leadingBuffer={0.0}
                        trailingBuffer={50}
                        textColor={'blue'}  />
@rknell
Copy link

rknell commented Dec 19, 2016

The example / props are out of alignment, you make the text children of the element that you want to display. To get rid of the warning you set something in text props

<MarqueeLabel scrollDuration={1.0} style={{height: 80, color: "black", fontSize: 100}} fontSize={30} text="Stop required error">blah blah blah</MarqueeLabel>

@lavarajallu
Copy link

lavarajallu commented Feb 7, 2017

I want entire WindowSize width Fit the Scrool in marquee label What Can i Do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants