tfjs icon indicating copy to clipboard operation
tfjs copied to clipboard

Performance Enhancement: Migrate to Modern React Native Architecture ๐Ÿš€

Open sanjaiyan-dev opened this issue 10 months ago โ€ข 16 comments

Hi,

This PR introduces changes to modernize the React Native architecture, yielding significant improvements in native performance and enabling bridgeless mode compatibility (see https://reactnative.dev/architecture/landing-page#fast-javascriptnative-interfacing for more information). Migrating to these updated packages ensures long-term support, alignment with modern React Native standards, and enhanced performance for future project development.

Package Updates:

Release Strategy Suggestion: As for the release, I suggest we can either release this update with a @beta tag to allow users to test the changes before the final release or we can update all relevant documentation and introduce this as a breaking change for the next major version. This will give us the flexibility to properly communicate the changes and ensure a smooth upgrade path for the users.

Please review these changes and let me know if you identify any issues or potential areas for improvement. Your feedback is greatly appreciated.

sanjaiyan-dev avatar Feb 20 '25 12:02 sanjaiyan-dev

Issue -: https://github.com/tensorflow/tfjs/issues/8292

sanjaiyan-dev avatar Feb 20 '25 14:02 sanjaiyan-dev

Amazing thanks!

kirkryan avatar Feb 20 '25 15:02 kirkryan

Exactly what I was looking for, thank you ๐Ÿ™

I hope this gets merged soon!! Great work โค๏ธ

sergiou87 avatar Feb 20 '25 23:02 sergiou87

Exactly what I was looking for, thank you ๐Ÿ™

I hope this gets merged soon!! Great work โค๏ธ

Thanks so much for the kind words! I'm hopeful for a merge soon too ๐Ÿ’ซ

sanjaiyan-dev avatar Feb 23 '25 01:02 sanjaiyan-dev

@mattsoulanille @Linchenn sorry to bother you, but I saw you reviewed previous changes of the RN support (https://github.com/tensorflow/tfjs/pull/7451): any chance you can take a look at this one? ๐Ÿ™

Thanks in advance! ๐Ÿ’–

sergiou87 avatar Mar 06 '25 10:03 sergiou87

Hey guys! this is amazing!! I'm having this issue for a while, any update on this?

GiselaMD avatar Mar 17 '25 16:03 GiselaMD

@mattsoulanille @Linchenn sorry to bother you, but I saw you reviewed previous changes of the RN support (https://github.com/tensorflow/tfjs/pull/7451): any chance you can take a look at this one? ๐Ÿ™

Thanks in advance! ๐Ÿ’–

Hello,

I received an update yesterday regarding PR:

Reference: https://discuss.ai.google.dev/t/proposed-rewrite-of-react-native-integration-for-tensorflow-js/63295/5?u=sanjaiyan_parthipan

sanjaiyan-dev avatar Mar 17 '25 20:03 sanjaiyan-dev

Hello,

I received an update yesterday regarding the PR:

Reference:ย https://discuss.ai.google.dev/t/proposed-rewrite-of-react-native-integration-for-tensorflow-js/63295/5?u=sanjaiyan_parthipan

sanjaiyan-dev avatar Mar 17 '25 20:03 sanjaiyan-dev

Hi, do you have any updates on this PR ?

sanjaiyan-dev avatar Apr 12 '25 17:04 sanjaiyan-dev

@mattsoulanille @Linchenn could you take a look at this PR please? ๐Ÿ™

serpa1 avatar Apr 16 '25 17:04 serpa1

Any update on this?

QasimJaffry avatar May 04 '25 07:05 QasimJaffry

@mattsoulanille @Linchenn please please please, take a look at this PR ๐Ÿฅน

sergiou87 avatar Jun 10 '25 14:06 sergiou87

@mattsoulanille @Linchenn please please please, take a look at this PR ๐Ÿฅน

Is this project still being maintained, or is it considered stale?

sanjaiyan-dev avatar Jun 12 '25 05:06 sanjaiyan-dev

@sanjaiyan-dev I don't think it's stale since I see @mattsoulanille merging and submitting PRs. I also see @pyu10055 approving a recent one.

I understand reviewing PRs from external contributors is hard, but it'd be nice to get a bit of feedback. I wonder if splitting this PR in smaller ones would help to digest them and get them mergedโ€ฆ

sergiou87 avatar Jun 13 '25 07:06 sergiou87

@sanjaiyan-dev I don't think it's stale since I see @mattsoulanille merging and submitting PRs. I also see @pyu10055 approving a recent one.

I understand reviewing PRs from external contributors is hard, but it'd be nice to get a bit of feedback. I wonder if splitting this PR in smaller ones would help to digest them and get them mergedโ€ฆ

Thank you so much for the helpful feedback and the great suggestion! I'm happy to split this into smaller PRs. Since I'm new to this process, could you offer any guidance on what the most logical chunks would be?

sanjaiyan-dev avatar Jun 14 '25 02:06 sanjaiyan-dev

Sorry @sanjaiyan-dev I would need some time to examine the changes very thoroughly first. I'm not even sure if it's possible (I was hoping you could tell me ๐Ÿ˜…).

IMHO the smaller the PR the better, even if that means having many PRs.

sergiou87 avatar Jul 01 '25 07:07 sergiou87