- Published on
Simple ReactNative elements
- Authors
- Name
- Ridha Majid
Introduction
React is one of a popular open-source Javascript library, React Native used for developing mobile-app for Android & IOS. And ReactJS usually used for developing web-app.
There's a little bit difference elements that we're usually using in ReactJs it might not working in React Native. For example we can take a look at a simple hello-world-app made by ReactJS.
hello-world-app.js
export default function Hello-world() {
return <div>Hello World</div>;
}
isn't hard right? , okay next we're make same hello-world-app but we're gonna made by ReactNative.
hello-world-app.js
import React from 'react';
import {View, Text} from "react-native";
export default function Hello-world() {
return(
<View>
<Text>Hello World</Text>
</View>
);
}