import React, { useContext } from 'react';
import { ScrollView, StyleSheet, View } from 'react-native';
import { useFonts } from 'expo-font';
import { Txt6, Txt4 } from '@proximus/react-native-common-ui/lib/texts/Txt';
import { useTheme, Colors } from '@proximus/react-native-common-ui/lib/styling';
import { e2eID, a11y } from '@proximus/react-native-common-ui/lib/common/utils';
export default function App() {
const loaded = useFonts({
'Proximus-Bold': require('@proximus/react-native-font-icons/lib/assets/fonts/Proximus-Bold.ttf'),
});
if (!loaded) {
return ;
}
return (
Brand colors
Colors.brand.purple
Colors.brand.red
Colors.brand.purple70
Colors.brand.blue
Colors.brand.darkBlue
Colors.brand.green
Colors.brand.orange
Colors.brand.pink
Colors.brand.turquoise
Colors.brand.yellow
Status colors
Colors.status.error
Colors.status.order
Colors.status.success
Colors.status.toastError
Colors.status.validGreenPos
Colors.status.warning
Colors.status.warningOrangePos
Colors.status.warningText
Shades of grey
Colors.shadesOfGrey.white
Colors.shadesOfGrey.black
Colors.shadesOfGrey.black4
Colors.shadesOfGrey.black5
Colors.shadesOfGrey.black6
Colors.shadesOfGrey.blackOpacity6
Colors.shadesOfGrey.black7
Colors.shadesOfGrey.black8
Colors.shadesOfGrey.black9
Colors.shadesOfGrey.black9Opacity6
Colors.shadesOfGrey.grey
Colors.shadesOfGrey.grey1
Colors.shadesOfGrey.grey2
Colors.shadesOfGrey.grey3
Colors.shadesOfGrey.grey4
Colors.shadesOfGrey.grey5
Colors.shadesOfGrey.grey6
Colors.shadesOfGrey.grey7
Colors.shadesOfGrey.grey8
Colors.shadesOfGrey.grey9
);
}
export function PxCard(props: IPxCardProps) {
const { theme } = useTheme();
const { children, wrapperStyle, testId, wrapperA11yProps, ...viewProps } =
props;
return (
{children}
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
justifyContent: 'center',
padding: 20,
},
});