besarthoxhaj / phoenix

React native project example
9 stars 1 forks source link

Propose logic for modal visibility #27

Closed besarthoxhaj closed 8 years ago

besarthoxhaj commented 8 years ago

@izaakrogan can you have a look at this, it's directed to your fix-view branch.

Is there a way to not show the modal only through style? Or are we forced to do something like this:

if (this.props.visible === true){
  <Modal> // modal
} else {
  <View> // empty view
}

Happy to implement any suggestion

izaakrogan commented 8 years ago

@besarthoxhaj are we not using props for this? i.e. visible: true/false

besarthoxhaj commented 8 years ago

@izaakrogan true! The attribute visible does all the job!