ramesh m
ramesh m

Reputation: 201

Can we convert existing React Native app to flutter without writing the code from scratch in flutter

I have a existing react native application . Can i migrate it to flutter without starting the application from scratch in flutter. Thanks.

Upvotes: 5

Views: 8357

Answers (1)

ThomasRedstone
ThomasRedstone

Reputation: 398

Yes, to a certain degree.

This tool can convert React Native components to Flutter Widgets:

https://github.com/GeekyAnts/react-native-to-flutter

And this can convert JavaScript to Dart (though it is very old, so may not work with recent versions):

https://github.com/luisvt/jsparser

This does the same for TypeScript and is significantly newer and appears to be used to convert Angular to Dart, so should work on just about any codebase... But it has been archived, so it's future is unclear!

https://github.com/dart-archive/ts2dart

Ultimately after you've done any kind of automatic conversion you'll still have a fair bit to go, some things will be broken horribly, some will work, but the automated conversation can write some very odd and verbose code.

I know this question is fairly old, but the existing answers just felt a little defeatist! So hopefully this is of some use to someone, please comment if things don't work or you know of better tools!

Upvotes: 6

Related Questions