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

How can I initialize component with styles #40

Open
JasonXDDD opened this issue Jun 2, 2019 · 0 comments
Open

How can I initialize component with styles #40

JasonXDDD opened this issue Jun 2, 2019 · 0 comments

Comments

@JasonXDDD
Copy link

I have a original component and store its style with onEnd function

<Gestures style={{ position: 'absolute' }}
    onEnd={(event, styles) => {
        this.item.style = styles 
}}>
    <Image source={this.item.image} />
</Gestures>

however, I want to put this style to another component, for example

<Gestures style={{ position: 'absolute' }}
    onInit={this.item.style} // I want something like this to init with styles
>
    <Image source={this.item.image} />
</Gestures>

how can I do this?

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

1 participant