-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.2.0-beta #276
Merged
Merged
0.2.0-beta #276
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
5451399
add filter for invalid relay urls in publish
KKA11010 276ab99
bump to 0.1.3-beta
KKA11010 3490be0
add methods to check for new release
KKA11010 b5da323
add release screen
KKA11010 a5f9de2
fix pasting invoice
KKA11010 c5698e5
remove operator in swap history entry
KKA11010 32fcca9
update styling of few screens
KKA11010 27b844e
update release screen, update hungarian tl
KKA11010 d9871a8
update history details screen layout
KKA11010 5180eab
combine memo screen with amount screen
KKA11010 b8aee37
update screen layouts padding
KKA11010 8da4e13
update scanned npub screen
KKA11010 d4454a4
bump to 0.2.0-beta
KKA11010 1fc9e84
update circle button color
KKA11010 5dbb34f
add qr scan in addressbook payment process
KKA11010 7341fed
update styling of keyboardAvoidingView
KKA11010 3129a26
update styling of keyboardAvoidingView
KKA11010 d8a4d8c
update logo color in light highlighting theme
KKA11010 82d7aa2
update styling of keyboardAvoidingView
KKA11010 0813820
solve styling of keyboardAvoidingView
KKA11010 1af4225
update trust modal layout
KKA11010 c7c33e2
update translations
KKA11010 2a21a2e
update translations
KKA11010 018fd1c
update translations
KKA11010 23d0123
Merge branch 'main' into 0.1.3-beta
KKA11010 c3846af
test auto-mint-swap
KKA11010 2920f94
auto-swap overpaid fees are stored in srcMint and added to user db
KKA11010 2777154
add todo
KKA11010 9e79f1b
use fullAutoMintSwap function
KKA11010 e263a86
format trustMint file
KKA11010 e0f9750
update auto-mint-swap translation
KKA11010 331197f
fix nip05 string check
KKA11010 272eede
clear deep link var after using
KKA11010 5663271
update backup screen, add hints
KKA11010 ed9f533
update fee in tx history and details
KKA11010 d06d510
avoid foreground prompt after copy backup token
KKA11010 461151d
clear deep link url if user cancels payment
KKA11010 105a15c
clear deep link url if user cancels payment
KKA11010 87424a1
update invoice check and add block comment
KKA11010 16ae233
add TODO
KKA11010 91570be
update and handle fullAutoMintSwap
KKA11010 c7273dd
remove unused imports
KKA11010 7ef9b88
fix typo
KKA11010 4e09174
update hu.json
KKA11010 b2177b7
Merge branch 'main' into 0.1.3-beta
KKA11010 b601f75
Merge branch 'main' into 0.1.3-beta
KKA11010 95b62e0
fix success screen data. Show change amount in success screen.
KKA11010 35d02e0
add "wallet" and "proofs" to translation files
KKA11010 75c8f27
fix focus issue in amount screen
KKA11010 93c56b3
shorten a german translation
KKA11010 e776e23
move some options into general settings
KKA11010 54aee2d
update QR screen on initial loading
KKA11010 41092c6
update history entry layout
KKA11010 9e8ee86
update styling of option rows
KKA11010 4bedf04
add dashboard transition to qr screen
KKA11010 2097e19
lint & fix ci
KKA11010 f5c5ad4
check if incoming token is from default token
KKA11010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import type { RootStackParamList } from '@model/nav' | ||
import { type NavigationProp,useNavigation } from '@react-navigation/core' | ||
import { useThemeContext } from '@src/context/Theme' | ||
import { useRef } from 'react' | ||
import { Animated, Easing } from 'react-native' | ||
|
||
type StackNavigation = NavigationProp<RootStackParamList> | ||
|
||
export const useTransitionAnimation = () => { | ||
const nav = useNavigation<StackNavigation>() | ||
const { color } = useThemeContext() | ||
const animatedColorValue = useRef(new Animated.Value(0)).current | ||
const animatedPositionValue = useRef(new Animated.Value(0)).current | ||
const animatedOpacityValue = useRef(new Animated.Value(0)).current | ||
const animatedMarginValue = useRef(new Animated.Value(0)).current | ||
const animationEnded = useRef(false) | ||
const interpolatedColor = animatedColorValue.interpolate({ | ||
inputRange: animationEnded.current ? [1, 0] : [0, 1], | ||
outputRange: animationEnded.current ? ['#000', color.BACKGROUND] : [color.BACKGROUND, '#000'], | ||
}) | ||
const interpolatedPosition = animatedPositionValue.interpolate({ | ||
inputRange: animationEnded.current ? [1, 0] : [0, 1], | ||
outputRange: animationEnded.current ? [100, 0] : [0, 100], | ||
}) | ||
const interpolatedOpacity = animatedOpacityValue.interpolate({ | ||
inputRange: animationEnded.current ? [1, 0] : [0, 1], | ||
outputRange: animationEnded.current ? [0, 1] : [1, 0], | ||
}) | ||
const interpolatedMargin = animatedMarginValue.interpolate({ | ||
inputRange: animationEnded.current ? [1, 0] : [0, 1], | ||
outputRange: animationEnded.current ? [-1000, 0] : [0, -1000], | ||
}) | ||
const animatedBgStyles = { | ||
backgroundColor: interpolatedColor, | ||
} | ||
const animatedPosStyles = { | ||
transform: [{ translateY: interpolatedPosition }], | ||
} | ||
const animatedOpacityStyles = { | ||
opacity: interpolatedOpacity, | ||
} | ||
const animatedMarginStyles = { | ||
marginTop: interpolatedMargin, | ||
} | ||
const animateTransition = () => { | ||
Animated.parallel([ | ||
Animated.timing(animatedColorValue, { | ||
toValue: animationEnded.current ? 0 : 1, | ||
duration: 300, | ||
easing: Easing.linear, | ||
useNativeDriver: false, | ||
}), | ||
Animated.timing(animatedPositionValue, { | ||
toValue: animationEnded.current ? 0 : 1, | ||
duration: 300, | ||
easing: Easing.linear, | ||
useNativeDriver: false, | ||
}), | ||
Animated.timing(animatedOpacityValue, { | ||
toValue: animationEnded.current ? 0 : 1, | ||
duration: 150, | ||
easing: Easing.linear, | ||
useNativeDriver: false, | ||
}), | ||
Animated.timing(animatedMarginValue, { | ||
toValue: animationEnded.current ? 0 : 1, | ||
duration: 300, | ||
easing: Easing.linear, | ||
useNativeDriver: false, | ||
}) | ||
]).start(() => { | ||
if (animationEnded.current) { return animationEnded.current = false } | ||
nav.navigate('qr scan', { mint: undefined }) | ||
animationEnded.current = true | ||
}) | ||
} | ||
return { | ||
animatedBgStyles, | ||
animatedPosStyles, | ||
animatedOpacityStyles, | ||
animatedMarginStyles, | ||
animationEnded, | ||
animateTransition, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are few strings in the app I found "untranslateable". Is it possible to add these too?
"Wallet" on main screen
"Proofs" in Settings -> Manage Mints -> select mint -> Funds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your review sir, really appreciate it! Yes, you are right, I will add these as well.
How should I translate "wallet" and "proofs"?
I've also had to add new translations due to new screens. I used chatGPT for it, can you please review those as well? You can find them for hungarian here line 227 to 234
@KvartBeerborn for spanish here line 227 to 234
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great thanks!
"wallet" should be "tárca" and
"proofs" should be "bizonylatok"