Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React Native - Sliding up Panel does not work on android

$
0
0

Does Anyone knows why the panel is not showing on android when I click on the button? I'm using https://www.npmjs.com/package/rn-sliding-up-panel btw. Please feel free to tell me, if you have any other recommended sliding panel library.

    ...
    <Button title="Show panel" onPress={() => _panel.show(400)} />
    ...
    <SlidingUpPanel
              style={{borderTopLeftRadius: 10}}
              ref={c => (_panel = c)}>
              <View
                style={{
                  flex: 1,
                  backgroundColor: 'white',
                  alignItems: 'center',
                  borderTopRightRadius: 18,
                  borderTopLeftRadius: 18,
                }}>
                <Text>Header</Text>
                <Text>Content</Text>
                <Button title="Hide" onPress={() => _panel.hide()} />
              </View>
    </SlidingUpPanel>

enter image description here


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>