brentvatne / stargrave-0

preserving my stars for vanity. former home of react-native-modal
389 stars 65 forks source link

I am using React Native of 0.10 version. I have copied same sample but still it is not working. #45

Closed kamalkrishna3000 closed 7 years ago

kamalkrishna3000 commented 9 years ago

Code I have used

class Login extends React.Component {

constructor(props) { super(props); this.state = { searchString: 'admin', password : 'admin', isModalOpen: true }; } openModal() { this.setState({isModalOpen: true}); }

closeModal() { this.setState({isModalOpen: false}); }

render() { return(

this.openModal()}> Open Modal this.closeModal()}> Hello world

); } }

techmentormaria commented 9 years ago

I had the same issue. It seems like the example provided is not up-to-date. I had to change 'isVisible' to 'visible' and it worked.