ReactNative vs Flutter vs Native, how to choose?

Author:zhaoyiming0803 Date:2025-10-15

If you develop an App, will you choose which tech stack? For me, the most important element is “Production Demand”.

In Web environment, View and Style is separated.


<style>
  .container {
    width:  100px;
    height: 100px;
    padding:  10px;
    box-sizing: border-box;
  }
</style>

<div class="container" style="color: red;">Hello World</div>

In ReactNative, the TSX grammar is similar with Web


export function HomePage () {
  return <View style={style.container}>
    <Text style={{
      color: 'red'
    }}>Hello World</Text>
  </View>
}

const styles = StyleSheet.created({
  container {
    width: 100,
    height: 100,
    padding: 10,
    boxSizing: 'border-box'
  }
})

When i was first use ReactNative in 2020, two projects were initialized using ReactNative Expo respectively. Both of these projects have some functions that need to integrate native Swift and Android functionalities, especially Android. Using the official recommended JetPack Compose to implement components is very convenient, but it is necessary to configure relevant dependencies at the Android level. With Expo, it is very convenient to create native modules: native-module-tutorial.

https://docs.expo.dev/modules/native-module-tutorial

The JS layer dispatches events to notify the Native layer to implement certain native functions.

However, some configurations of the first project failed to work when copied to the second project because the Compose version configured in Gradle was different, and the versions of the Compose-related Repositories must be compatible with the Kotlin version. Eventually, it took me one day to solve the version dependency issue.

This situation cannot be fully relied on AI because AI provides answers based on publicly available existing documents combined with its own reasoning ability. The prerequisite is that you must have relevant basic knowledge, such as how to configure the Gradle version number, and using ReactNative Expo to develop native sub-modules requires modifying the Gradle of the project layer, app layer, and module layer, and even in some scenarios, the setting.gradle file needs to be modified. All these contents are interrelated, and changing one place wrongly may lead to incompatibility in other places. AI does not know your operating system type, Kotlin, Java JDK version, and even if the developer themselves do not know that the current configuration is related to Kotlin or JDK version, I think they would not even know how to ask AI. If you just paste the error message to AI to solve it, then the answer it gives may lead you into another misunderstanding, resulting in additional errors.

Therefore, in ReactNative development, the most important thing is to solve the first step, get the project running, and the remaining problem is very easy for traditional Web developers. But the first step is very important.

In Flutter, “Widget” and “Style” are both “Class”:


class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
	@override
  	Widget build(BuildContext context) {
  		return Container(
  			width: 100,
  			height: 100,
  			decoration: BoxDecoration(
		        borderRadius: BorderRadius.circular(8),
		    ),
  			child: const Padding(
  				padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10)
  				child: Text("Hello World", style: TextStyle(color: Colors.red),)
  			)
  		)
  	}
}

All elements are “Class”, including elements such as “Center” and “Padding” that be used for layout. Besides, “BoxDecoration” and “BorderRadius” are both use “Class” to decorate. So, as the functionality becomes more complex, it is inevitable that beginners will end up writing code in a “nested hell” style.

For beginner of Web developer, it’s very uncomfortable.

There are many built-in components in Flutter that are specifically designed for mobile devices. Developers only need to pass in custom components or modify relevant attributes to use them out of the box.

Integrating native functions in Flutter is much more convenient compared to ReactNative. The official provides Method Channel:

https://docs.flutter.dev/platform-integration/platform-channels

It should be noted that: Native View is best presented as a separate page rather than being embedded as a Component within a Flutter Widget, as this would result in additional rendering overhead (by writing a demo test, you will clearly notice the bug). This point is also mentioned in the Flutter documentation, even though it is possible to do so. The same applies to ReactNative.

In Swift, achieve above layout:


struct ContentView: View {
    var body: some View {
        VStack {            
            Text("Hello World")
                .frame(width: 100, height: 100)
                .underline(true, pattern: .dot, color: Color.red)
                .strikethrough(true, color: Color.blue)
                .background(.blue)
                .foregroundColor(.red)

        }
        .padding(100)
    }
}

In Kotlin, achieve same layout use below code:

@Composable
fun ContentView() {
    Column(
        modifier = Modifier.padding(100.dp)
    ) {
        Text(
            text = "Hello World",
            style = TextStyle(
                fontSize = 16.sp,
                color = Color.Red,
                textDecoration = TextDecoration.combine(
                    listOf(
                        TextDecoration.Underline,
                        TextDecoration.LineThrough
                    )
                )
            ),
            modifier = Modifier
                .size(100.dp)
                .background(Color.Blue)
        )
    }
}

Kotlin is similar with Flutter: the “TextStyle” used to describe styles as well as other classes, or static functions of classes like Modifier.padding, are all classes.

Swift wraps the text content using the Text component, and for the styling description of the text, it is achieved through its Properties (to be honest, I prefer this approach).

So:

  1. If only develop App, i will choose ReactNative or Flutter.
  2. If there is a need for both mini-programs and apps, Uniapp is the first choice, unless there are certain functions that are difficult to implement in Uniapp or some third-party services do not support Uniapp.
  3. If there is already a mini-program developed using Taro React, then choosing ReactNative for the app is definitely the right choice.

This is only my personal opinion. There is no absolute superiority or inferiority in the technology stack. What matters is whether it is suitable and how you use it!