mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
Update create.js
This commit is contained in:
parent
5cf3342077
commit
d248326f9a
1 changed files with 10 additions and 10 deletions
|
@ -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 (
|
||||
<>
|
||||
|
|
Loading…
Add table
Reference in a new issue