Skip to content
Snippets Groups Projects
Select Git revision
  • cb1e7642b58411d617e22f4022e6b72c65249c53
  • master default protected
  • 69-resize-image-before-upload
  • 60-add-match-salamander-modal-to-edit-salamander
  • 50-fix-server-error-message
  • 48-fix-gradle
  • 31-camera-communicate-with-api-and-delete-from-cache-2
  • 20-changing-verification-step-in-profile-to-modal
  • 4-add-all-basic-views
  • 1-setup
10 results

CustomButton.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CustomButton.js 549 B
    import * as React from "react";
    import { Button } from "react-native-paper";
    import { StyleSheet } from "react-native";
    
    const CustomButton = (props) => (
      <Button
        style={{ ...styles.button, ...props.style }}
        color={props.color}
        icon={props.icon}
        mode={props.mode}
        color="#435768"
        onPress={props.onPress}
        disabled={props.disabled}
      >
        {props.title}
      </Button>
    );
    
    export default CustomButton;
    
    const styles = StyleSheet.create({
      button: {
        width: "40%",
        alignSelf: "center",
        color: "#435768",
      },
    });