1.1.4 • Published 8 months ago
react-native-swipeable-panel v1.1.4
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 painelclose
: Function | Executa a função ao fechar o painelpanelBackgroundColor
: 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
10 months ago
1.1.0
11 months ago
1.0.9
11 months ago
1.1.4
8 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.0.8
12 months ago
1.0.7
12 months ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
0.6.0
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago