rn-sliding-up-panel icon indicating copy to clipboard operation
rn-sliding-up-panel copied to clipboard

Not working inside a Modal

Open boss-bioman opened this issue 6 years ago • 5 comments

View is rendered but not draggable

boss-bioman avatar Jun 14 '18 06:06 boss-bioman

+1

filipmadej avatar Aug 19 '18 16:08 filipmadej

Any solution on this?!

upputurisairaja avatar Apr 09 '19 16:04 upputurisairaja

+1

yigithanyucedag avatar Nov 14 '19 19:11 yigithanyucedag

@yigithanyucedag may I have a screenshot of what you're trying to achieve?

octopitus avatar Nov 15 '19 02:11 octopitus

Same here @octopitus ☹️ my code is:

import.......
....
const {height} = Dimensions.get('window');

const somecomponent = () = > (
<Modal visible animationType="slide">
        <View style={{paddingTop: 54, flex: 1, height}}>
          <SlidingUpPanel
            backdropOpacity={0}
            ref={c => (this._panel = c)}
            draggableRange={{top: 400, bottom: 100}}
            animatedValue={this.draggedValue}
            height={400}
            friction={0.5}>
            <View
              style={{flex: 1, backgroundColor: 'white', position: 'relative'}}>
              <View
                style={{
                  height: 180,
                  backgroundColor: '#b197fc',
                  justifyContent: 'flex-end',
                  padding: 24,
                }}>
                <Text>Sliding Up Panel</Text>
              </View>
            </View>
          </SlidingUpPanel>
        </View>
      </Modal>
);

Out of Modal it work's

Jhony-Reyes avatar Nov 30 '19 03:11 Jhony-Reyes