From 5e61135cf59f944c68828fd688a718c4c6d82d77 Mon Sep 17 00:00:00 2001 From: First-Terraner <40151034+KKA11010@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:28:26 +0200 Subject: [PATCH] Add keyboardAvoidingView. Fixes #8 (#72) * add keyboardAvoidingView. Fixes #8 * update top navigation in contact details --- src/components/InvoiceAmount.tsx | 10 ++++--- src/components/modal/index.tsx | 5 ++-- .../screens/Addressbook/Contact.tsx | 26 ++----------------- .../screens/Lightning/payInvoice.tsx | 7 ++--- src/consts/env.ts | 3 ++- 5 files changed, 18 insertions(+), 33 deletions(-) diff --git a/src/components/InvoiceAmount.tsx b/src/components/InvoiceAmount.tsx index a186d49e..e8a260f2 100644 --- a/src/components/InvoiceAmount.tsx +++ b/src/components/InvoiceAmount.tsx @@ -1,6 +1,7 @@ import { getDecodedLnInvoice } from '@cashu/cashu-ts' import Button from '@comps/Button' import useLoading from '@comps/hooks/Loading' +import { isIOS } from '@consts' import type { IInvoiceState } from '@model/ln' import { InvoiceAmountModal, InvoiceModal } from '@screens/Lightning/modal' import { ThemeContext } from '@src/context/Theme' @@ -8,7 +9,7 @@ import { globals, highlight as hi } from '@styles' import { cleanUpNumericStr, vib } from '@util' import { requestMint } from '@wallet' import { createRef, useContext, useEffect, useState } from 'react' -import { Animated, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native' +import { Animated, KeyboardAvoidingView, StyleSheet, Text, TextInput, TouchableOpacity } from 'react-native' import { useShakeAnimation } from './animation/Shake' @@ -90,7 +91,10 @@ export default function LNInvoiceAmountModal({ Satoshi - +