deavial / react-native-dialogbox

Dialog boxes for React Native (forked from react-native-popup)
Other
48 stars 21 forks source link

add custom content dialog box #11

Open danielCrespo01 opened 8 years ago

danielCrespo01 commented 8 years ago

you can add custom content within the component.

deavial commented 8 years ago

The implementation is still the same as the origin code, which doesn't support child nodes.

I have that as one of the highest things on my list. My first priority has been splitting the code out to es6 and a proper repository format.

So answer is not yet.

deavial commented 8 years ago

The branch that these changes are going in is here, just an FYI.

danielCrespo01 commented 8 years ago

it seems that the modal component meets my requirements thank you very much

gaoyuqi commented 8 years ago

when I copy this code, the system reported the object which get by ref was undefined. and I found in react-native the "ref" attribute is not supported, right? any workaround is welcome.

deavial commented 7 years ago

Can you post you code example? ref is still valid, it is the old way of using it that was dropped. In the olden days we called ref="somename" and react would assign the object to a refs object. That was replaced this year in favor of the lambda style ref={(somename) => this.somename = somename }".

If you are getting undefined, make sure that your component is mounting the code. I would be happy to help you, but I need an example of your render method to get an idea of what is going on.