added link component with some tweaks to transaction list #98
No reviewers
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#98
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "links"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think it would make more sense to add to the
<Link />
component. Just use anhref
prop or something. You could also move thenotify
call and just use anerrorMessage
prop.@seanyesmunt I've pushed a new commit with the requested changes.
@ -28,3 +35,3 @@
<View style={transactionListStyle.row}>
<View style={transactionListStyle.col}>
<Text style={[transactionListStyle.smallText, transactionListStyle.txid]}>{txid.substring(0, 8)}</Text>
<Link style={transactionListStyle.smallLink}
Will this try opening the browser?
I think it will go into the
else
block and try opening the browser with no href.@ -28,3 +35,3 @@
<View style={transactionListStyle.row}>
<View style={transactionListStyle.col}>
<Text style={[transactionListStyle.smallText, transactionListStyle.txid]}>{txid.substring(0, 8)}</Text>
<Link style={transactionListStyle.smallLink}
I have the
onPress
specified explicitly for this link, which overrides theonPress
in the component itself. Basically, the idea is you can override the default implemented Link opening behaviour if you want to implement some custom logic.@ -28,3 +35,3 @@
<View style={transactionListStyle.row}>
<View style={transactionListStyle.col}>
<Text style={[transactionListStyle.smallText, transactionListStyle.txid]}>{txid.substring(0, 8)}</Text>
<Link style={transactionListStyle.smallLink}
Ah I see that now. Cool