Skip to content

the modal doesn't appear #11

Description

@xinwanggit

I use it as this:

<Modal visible={this.state.modalVisible} style={{

                           top: 0,
                           right: 0,
                           bottom: 0,
                           left: 0,
                           justifyContent: 'center',
                           alignItems: 'center',
                           backgroundColor: 'rgba(0, 0, 0, 0)'}}>
         
           <View  style={{
                   borderRadius: 5,
                   alignItems: 'center',
                   padding:15,
                   backgroundColor: 'rgba(0, 0, 0, 0.5)'}}  >

                         <ActivityIndicator
                              color="#fff"
                              animating={true}
                              size="small"
                           />
               </View>

the visible has changed from false to true,but the modal cann't appear;but I change the this.state.modalVisible to true,it can appear...

can anyone help me ??
thx.

android:Emulator API 23,
react-native:0.43

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions