feat:formbricks configurando formbricks
This commit is contained in:
25
src/components/ShowFormButton.tsx
Normal file
25
src/components/ShowFormButton.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import React, {useEffect, useState} from 'react';
|
||||
import {StyleSheet, View, Button} from 'react-native';
|
||||
import FormbricksShow from '../features/Formbricks/Formbricks';
|
||||
|
||||
function ShowFormButton(): React.JSX.Element {
|
||||
const [isFormVisible, setIsFormVisible] = useState(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
<View>
|
||||
<Button
|
||||
title="Exibir formulário"
|
||||
onPress={() => {
|
||||
console.log(isFormVisible);
|
||||
setIsFormVisible(true);
|
||||
}}
|
||||
/>
|
||||
{isFormVisible && <FormbricksShow />}
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export default ShowFormButton;
|
||||
Reference in New Issue
Block a user