Files
formbricks-test/App.tsx
2025-01-07 17:06:36 -03:00

52 lines
1.1 KiB
TypeScript

import React from 'react';
import type {PropsWithChildren} from 'react';
import {
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
import ShowFormButton from './src/components/ShowFormButton';
function App(): React.JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
return (
<SafeAreaView style={styles.appcontainer}>
<StatusBar
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
backgroundColor={backgroundStyle.backgroundColor}
/>
<View
style={{
backgroundColor: isDarkMode ? Colors.black : Colors.white,
}}>
<ShowFormButton />
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
appcontainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'blue',
},
});
export default App;