Skip to content
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

[Wallet] Fix ListView deprecation warning #1293

Merged
merged 4 commits into from
Oct 11, 2019

Conversation

jeanregisser
Copy link
Contributor

@jeanregisser jeanregisser commented Oct 10, 2019

Description

This PR fixes a new warning that shows up on the JoinCello screen following the changes made for iOS (#1225).

It’s caused by react-native-autocomplete-input which uses a ListView.
I think it was thrown too early previously to be shown and now that the screen is wrapped in SafeAreaView, the timing is different and triggers it.

I've upgraded to the latest stable version of react-native-autocomplete-input which now uses a FlatList.

Tested

Updated tests. Ran the app -> no warnings displayed on the JoinCello screen.

Other changes

  • Moved react-native-autocomplete-input to @celo/react-components since it's used only there
  • Cleaned up obsolete declare module 'react-native-autocomplete-input'
  • Moved @celo/react-components from devDependencies to dependencies for the mobile project

Related issues

Backwards compatibility

Yes.

Copy link
Contributor

@jmrossy jmrossy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #1293 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1293   +/-   ##
=======================================
  Coverage   66.41%   66.41%           
=======================================
  Files         264      264           
  Lines        7745     7745           
  Branches      513      444   -69     
=======================================
  Hits         5144     5144           
- Misses       2500     2502    +2     
+ Partials      101       99    -2
Flag Coverage Δ
#mobile 66.41% <ø> (ø) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/utils/formatting.ts 89.74% <0%> (ø) ⬆️
packages/mobile/src/identity/reducer.ts 41.66% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0daabd8...bc03c1f. Read the comment docs.

@jeanregisser jeanregisser merged commit 3e4b186 into master Oct 11, 2019
@jeanregisser jeanregisser deleted the jeanregisser/fix-listview-warning branch October 11, 2019 08:46
aaronmgdr added a commit that referenced this pull request Oct 23, 2019
* master:
  Integration deploy, don't overwrite genesis block if upgrading testnet (#1315)
  Fix broken Discord link (#1317)
  [Wallet] Add check for $ENVFILE to pre-dev script (#1324)
  Add GRADLE_OPTS note to SETUP.md (#1311)
  Allow validators to specify an attestationKey with which they sign attestations (#1313)
  Add step to install typescript and other minor edits (#1256)
  [Wallet] Add script to build sdk for env before running yarn dev (#1312)
  [Wallet] Fix ListView deprecation warning (#1293)
  Set IN_MEMORY_DISCOVERY_TABLE=true for integration (#1296)
  Add ability to generate addresses directly from env file in celotool (#1294)
aaronmgdr added a commit that referenced this pull request Oct 23, 2019
* master:
  Integration deploy, don't overwrite genesis block if upgrading testnet (#1315)
  Fix broken Discord link (#1317)
  [Wallet] Add check for $ENVFILE to pre-dev script (#1324)
  Add GRADLE_OPTS note to SETUP.md (#1311)
  Allow validators to specify an attestationKey with which they sign attestations (#1313)
  Add step to install typescript and other minor edits (#1256)
  [Wallet] Add script to build sdk for env before running yarn dev (#1312)
  [Wallet] Fix ListView deprecation warning (#1293)
  Set IN_MEMORY_DISCOVERY_TABLE=true for integration (#1296)
  Add ability to generate addresses directly from env file in celotool (#1294)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wallet] Devs SNBA to see ListView warnings
2 participants