-
Notifications
You must be signed in to change notification settings - Fork 254
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
Jon/smol-4.12 #5201
Jon/smol-4.12 #5201
Conversation
08f9c32
to
381bbe8
Compare
Pending fix to SwapSuccessScene unit test |
renderConfetti() { | ||
if (!this.state.showConfetti) return null | ||
React.useEffect(() => { | ||
showConfettiAsync().catch(err => showError(err)) |
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.
Just put the code for showConfettiAsync inside the useEffect or useAsyncAffect. That avoids declaring the function on every render and the overhead of useHandler.
@@ -153,13 +153,13 @@ export const SwapCreateScene = (props: Props) => { | |||
if (exchangeInfo != null) { | |||
const disableSrc = checkDisableAsset(exchangeInfo.swap.disableAssets.source, swapRequest.fromWallet.id, fromTokenId) | |||
if (disableSrc) { | |||
showError(sprintf(lstrings.exchange_asset_unsupported, fromCurrencyCode)) |
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.
remove exchange_asset_unsupported
if unused
src/components/modals/ScanModal.tsx
Outdated
|
||
/** Display the asset icon */ | ||
wallet?: EdgeCurrencyWallet | ||
tokenId?: EdgeTokenId |
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.
This whole change is a misunderstanding of the task. The task is to Put asset icon and subicon on top of QRcode
not on top of the scanning camera view. This should go on to the request scene
f29be42
to
7b14dee
Compare
package.json
Outdated
@@ -142,6 +141,7 @@ | |||
"react-native-patina": "^0.1.6", | |||
"react-native-permissions": "^4.1.5", | |||
"react-native-piratechain": "^0.4.16", | |||
"react-native-qr-svg": "^1.3.2", |
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.
This adds 1MB of javascript to our code which is pretty sizeable. I talked to William and he agreed this could easily create a perf issue. The icon could just be a View that you overlay on top of the QRcode. No additional library needed.
ec0f566
to
f9839ea
Compare
Prop-less with UI4-compatible split margins
We're already applying the Android `visible-password` hack in `FilledTextInput.` Callers setting `secureTextEntry` nullifies the hack.
Not possible to use a `KeyboardAvoidingView` in the previous commit because a `FilledTextInput` squished smaller than 1 line causes it to immediately blur on focus, and this scene has too much content above the input.
Had to make a hacky `EdgeAnim` full overlay to make this work, `ButtonsView` was not designed with this behavior in mind.
f9839ea
to
80abe8e
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: