Fakultas Ilmu Komputer UI

index.tsx 546 Bytes
Newer Older
1
2
3
4
5
6
7
import React, { FC } from 'react';
import { Button } from 'react-native-elements';

import { styles } from './styles';
import { Props } from './types';
import { typographyStyles } from 'styles';

8
9
10
11
12
13
14
const BigButton: FC<Props> = ({
  title,
  onPress,
  disabled,
  loading,
  testID,
}) => (
15
  <Button
16
    titleStyle={[typographyStyles.bodyMedium, styles.titleStyle]}
17
18
19
20
    disabled={disabled}
    buttonStyle={styles.containerStyle}
    onPress={onPress}
    title={title}
21
22
    loading={loading}
    testID={testID}
23
24
25
26
  />
);

export default BigButton;