deavial / react-native-dialogbox

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

Put it a bit higher? #56

Closed andrisole92 closed 7 years ago

andrisole92 commented 7 years ago

Is it possible to make it appear a little bit higher?

deavial commented 7 years ago

Yes, all styles can be overridden. This is the default style for the box in this example:

<DialogBox style={{
     tipBoxView: {
          backgroundColor: '#fff',
      justifyContent: 'center',
      alignItems: 'center',
      width: Dimensions.get('window').width - 50,
      borderRadius: 12,
      overflow: 'hidden',
     }
}} />

So to move it up you could add a marginTop and give it a negative value.