Update create.js

This commit is contained in:
Marcos Rodriguez Vélez 2021-09-07 13:10:35 -04:00
parent 5cf3342077
commit d248326f9a

View file

@ -50,16 +50,6 @@ const SendCreate = () => {
};
}, []);
useEffect(() => {
setOptions({
headerRight: () => (
<TouchableOpacity accessibilityRole="button" style={styles.export} onPress={exportTXN}>
<Icon size={22} name="share-alternative" type="entypo" color={colors.foregroundColor} />
</TouchableOpacity>
),
});
}, [colors, exportTXN, setOptions]);
const exportTXN = useCallback(async () => {
const fileName = `${Date.now()}.txn`;
if (Platform.OS === 'ios') {
@ -110,6 +100,16 @@ const SendCreate = () => {
}
}, [tx]);
useEffect(() => {
setOptions({
headerRight: () => (
<TouchableOpacity accessibilityRole="button" style={styles.export} onPress={exportTXN}>
<Icon size={22} name="share-alternative" type="entypo" color={colors.foregroundColor} />
</TouchableOpacity>
),
});
}, [colors, exportTXN, setOptions]);
const _renderItem = ({ index, item }) => {
return (
<>