1.1.4 • Published 2 years ago

react-native-swipeable-panel v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Método de uso

Instale o package

npm i react-native-swipeable-panel

Importe o package na sua aplicação

import Panel from 'react-native-swipeable-panel';

Exemplo de uso

import React, { useState } from "react";
import { View, Text } from "react-native";
import Panel from "react-native-swipeable-panel";

export default function Page() {
  const [showPanel, setShowPanel] = useState(true);
  return (
    <View>
      <Panel show={showPanel} close={() => setShowPanel(false)}>
        <Text
          style={{
            marginVertical: 12,
            marginHorizontal: 24,
            flex: 1,
            alignSelf: "center",
            textAlign: "center",
            color: "black",
            fontWeight: "700",
            fontSize: 36,
          }}
        >
          Alexanderiscoding
        </Text>
      </Panel>
    </View>
  );
}
  • show: Boolean | Mostrar/Ocultar o painel
  • close: Function | Executa a função ao fechar o painel
  • panelBackgroundColor: String | Altera cor de fundo padrão (Opcional)
  • panelShadowColor: String | Altera cor de sombra padrão (Opcional)
  • panelBarColor: String | Altera cor da barra padrão (Opcional)
1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago