Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Card as NativeCard } from "react-native-elements";
import styles from "./styles";
export default class Card extends Component {
static propTypes = {
title: NativeCard.propTypes.title,
children: PropTypes.node,
image: NativeCard.propTypes.image
};
static defaultProps = {
title: null,
children: null,
image: null
};
render() {
return (
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Card as NativeCard } from "react-native-elements";
import styles from "./styles";
export default class Card extends Component {
static propTypes = {
title: NativeCard.propTypes.title,
children: PropTypes.node,
image: NativeCard.propTypes.image
};
static defaultProps = {
title: null,
children: null,
image: null
};
render() {
return (