-
Notifications
You must be signed in to change notification settings - Fork 74
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
Migrate to react-native-nitro-sqlite
#602
base: main
Are you sure you want to change the base?
Migrate to react-native-nitro-sqlite
#602
Conversation
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.
Can this be used with App that is not yet migrated the the nitro-sqlite?
@chrispader let @dominictb know when this si ready for testing and checklist |
@chrispader does @dominictb need to use Expensify/App#53149 with these changes? |
@mountiny I've already migrated E/App too in Expensify/App#53149. The changes could technically already be used, but i would hold on this PR to be merged first, so we can just bump the Onyx version in E/App instead of using a git commit. |
yes, i just added a note to |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-11-29.at.15.10.39-compressed.movMacOS: Desktop |
Just tested a number of flows and no problem so far 😄 Only 1 question above ^ and we're good to 🚀. @chrispader Don't forget to fill your Author Checklist. |
@chrispader Any update? |
I'm pretty busy with other tasks this week, will look into this next monday |
I currently cannot reproduce this since i have no bank account/wallet set up. This is a SQLite internal error, which should not be possible, since we never use transactions and rollbacks, but i'll have to look into this deeper once i have the bank account set up and i am able to click on "Pay with Expensify". |
@chrispader You can follow the credential here 🧵 to connect to a bank account for a workspace. |
I cannot reproduce this. Do you have any specific repro steps for this? Does this warning appear right after you click the "Pay with Expensify" button? Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-12-17.at.16.45.12.mp4 |
@dominictb please let us know if you can still reproduce this |
Issue is no longer reproducible. But @chrispader Can you please help check Expensify/App#53149 (comment) to see if we can still proceed this PR? |
@mountiny
Details
This PR migrates Onyx to use
react-native-nitro-sqlite
instead ofreact-native-quick-sqlite
.There are only some minor changes to the types and usages of some operations, so there are no major logic changes.
Nitro now allows generic type parameters for
execute
andexecuteAsync
and also includes general improvements to the API.react-native-nitro-sqlite
will need at least[email protected]
as a peer dependency, but since we're already onv0.75.2
in E/App, this shouldn't be a problem, right?Related Issues
Expensify/App#53063
Automated Tests
No new tests needed. No changes in logic.
Manual Tests
In order to test this PR in E/App use this branch
Author Checklist
### Related Issues
section aboveTests
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop