Configuring Property Capture
freshpaintOptions = {
eventProps: {
include: [ '<inc_prop_1>', '<inc_prop_2>', ..., '<inc_prop_n>' ],
exclude: [ '<exc_prop_1>', '<exc_prop_2>', ..., '<exc_prop_n>' ],
}
}import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
const ProductItem = ({title, description, onPress}) => {
return (
<TouchableOpacity onPress={onPress}>
<View>
<Text>{title}</Text>
<Text>{description}</Text>
</View>
</TouchableOpacity>
);
}
ProductItem.freshpaintOptions = {
eventProps : { include: [ 'title', 'description' ] }
};
export { ProductItem };
Last updated
Was this helpful?