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

bug in release mode

Open achmadfaturrizky opened this issue 4 years ago • 1 comments

Issue Description

so, I don't know why, when I use rn-sliding-up-panel in debug mode, there is no problem, everything is fine, but in release mode, the slide disappears, I don't know why that can happen

Steps to Reproduce / Code Snippets / Screenshots


<SlidingUpPanel
  containerStyle={styles.slidingUpPanelContainer}
  allowMomentum={true}
  draggableRange={{
    top: screenHeight,
    bottom: 150,
  }}>
  <ImageBackground
    style={{flex: 1, padding: 20}}
    source={require('../../assets/slideUpBackground.png')}
    resizeMode="stretch">
    <View style={styles.whiteLine} />
    <View style={{paddingTop: 20}}>
      <Text style={{fontWeight: 'bold', fontSize: 18}}>
        Jadwal Kamu
      </Text>
    </View>
    {data.length === 0 ? (
      <View style={{alignItems: 'center', marginTop: 15}}>
        <Text
          style={{
            fontSize: 15,
            fontWeight: 'bold',
            marginBottom: 3,
          }}>
          Belum Ada Jadwal
        </Text>
        <Text
          style={{
            textAlign: 'center',
            fontSize: 12,
            marginHorizontal: 37,
          }}>
          Pilih Kendaraan mu dan rencanakan perjalanan mu terlebih
          dahulu
        </Text>
      </View>
    ) : (
      <FlatList
        style={{marginTop: 10, flex: 1}}
        showsVerticalScrollIndicator={false}
        contentContainerStyle={{paddingBottom: 200}}
        data={data}
        renderItem={({item}) => {
          return (
            <View>
              <View
                style={{
                  flexDirection: 'row',
                  alignItems: 'center',
                }}>
                <Text>{item.time}</Text>
                <View style={styles.blackLine} />
              </View>
              <View style={{marginLeft: '15%'}}>
                <CostumerActivity
                  date={moment(item.date.toString()).format('DD')}
                  month={moment(item.date.toString()).format('MMM')}
                  locationHeader={item.location}
                  locationDetails={item.location}
                />
              </View>
            </View>
          );
        }}
        keyExtractor={item => item.idTransaction.toString()}
      />
    )}
  </ImageBackground>
</SlidingUpPanel>

Environment

  • Version: 2.4.2
  • React Native version: 0.62.2
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): All device in release mode

achmadfaturrizky avatar Jun 05 '20 21:06 achmadfaturrizky

I too have same issue

shivendra2015iiit avatar Jan 22 '21 15:01 shivendra2015iiit