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

Seeking help with setFrame: #1411

Closed
jonslenkooyala opened this issue May 26, 2015 · 2 comments
Closed

Seeking help with setFrame: #1411

jonslenkooyala opened this issue May 26, 2015 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jonslenkooyala
Copy link

hi, I am trying to hook up some native iOS Objective-C UI widgets. Normally I would be using initWithFrame: and then the native widget's drawing code would know about a non-zero area to paint in. How do I do this in React-Native? I tried constantsToExport in my *Manager, but the frame was still zero. Does the JSX have to explicitly pass values (I'm just hoping to use the flow layout)?

In other words, I would dearly like to read a tutorial (with complete sample source code hopefully) that explicitly addresses how frames are managed in the React-Native world. :-)

@ide
Copy link
Contributor

ide commented May 27, 2015

Frames are set from JS. Once you bridge your component over, give it style={{width: 100, height: 100}} and it should show up.

@jonslenkooyala
Copy link
Author

Thanks, will do.

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants