{"id":3967,"date":"2023-11-04T23:13:57","date_gmt":"2023-11-04T23:13:57","guid":{"rendered":"http:\/\/localhost:10003\/getting-started-with-react-native\/"},"modified":"2023-11-05T05:48:27","modified_gmt":"2023-11-05T05:48:27","slug":"getting-started-with-react-native","status":"publish","type":"post","link":"http:\/\/localhost:10003\/getting-started-with-react-native\/","title":{"rendered":"Getting Started with React Native"},"content":{"rendered":"

React Native offers developers the ability to build mobile applications using the same technologies used for web development. It allows developers to create cross-platform mobile apps while reusing as much code as possible, reducing development time and effort. In this tutorial, we’ll walk through the basics of getting started with React Native and building a simple mobile application.<\/p>\n

Prerequisites<\/h2>\n

Before we begin, we’ll need to make sure that we have a few things set up and ready to go. These include:<\/p>\n

    \n
  1. Node.js and npm installed on your machine \u2013 React Native is built on top of Node.js, which means that we’ll need to have it installed in order to use it. We can download Node.js and npm from the official Node.js website.<\/p>\n<\/li>\n
  2. \n

    An IDE or text editor \u2013 This can be any text editor or IDE of your choice, though we recommend using Visual Studio Code or Atom.<\/p>\n<\/li>\n

  3. \n

    A mobile device or emulator \u2013 We’ll need to have a mobile device or emulator set up in order to run our application. We recommend using either an Android emulator or the iOS Simulator that comes with Xcode.<\/p>\n<\/li>\n<\/ol>\n

    Getting Started<\/h2>\n

    Let’s start by creating a new React Native project. Open up your terminal and navigate to the directory where you want to create your project. Then, type the following command to initialize a new React Native project:<\/p>\n

    npx react-native init MyProject\n<\/code><\/pre>\n

    This will create a new React Native project named MyProject<\/code> in the directory that you’re currently in. Once the project has been created, navigate into the newly created directory by typing:<\/p>\n

    cd MyProject\n<\/code><\/pre>\n

    Next, we’ll need to start up the React Native development server. In your terminal, run the following command:<\/p>\n

    npx react-native start\n<\/code><\/pre>\n

    This will start up the development server and open up a Metro Bundler page in your browser. The Metro Bundler page displays a list of all the JavaScript modules that have been loaded into your application, as well as any errors that may have occurred during the build process.<\/p>\n

    Now that the development server is up and running, we can start our mobile application. Open up a new terminal window and navigate to the root directory of your React Native project. Then, run the following command:<\/p>\n

    npx react-native run-ios\n<\/code><\/pre>\n

    This command will start up the iOS Simulator and install your application on it. If you prefer to use an Android emulator instead, simply run the command npx react-native run-android<\/code> instead.<\/p>\n

    Congratulations! You’ve just run your first React Native application. The default React Native project will open in the mobile emulator or device.<\/p>\n

    Exploring the Code<\/h2>\n

    Now that we have a basic application up and running, let’s take a look at the basic structure of a React Native project.<\/p>\n

    App.js<\/h3>\n

    The App.js<\/code> file is the backbone of any React Native project. It’s where you’ll find the root component of your application, which is responsible for rendering all of the other components within your app. By default, the App.js<\/code> file contains a simple “Hello, world!” message.<\/p>\n

    import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nexport default function App() {\n  return (\n    <View style={styles.container}>\n      <Text>Hello, world!<\/Text>\n    <\/View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    backgroundColor: '#fff',\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n});\n<\/code><\/pre>\n

    index.js<\/h3>\n

    The index.js<\/code> file is the entry point for your React Native application. It’s responsible for registering the root component of your application and rendering it to the mobile device or emulator.<\/p>\n

    import { AppRegistry } from 'react-native';\nimport App from '.\/App';\nimport { name as appName } from '.\/app.json';\n\nAppRegistry.registerComponent(appName, () => App);\n<\/code><\/pre>\n

    package.json<\/h3>\n

    The package.json<\/code> file contains information about your React Native project, including the name, version, and dependencies. You can view and manage your dependencies by running npm install<\/code> in your project directory.<\/p>\n

    {\n  \"name\": \"MyProject\",\n  \"version\": \"0.0.1\",\n  \"private\": true,\n  \"scripts\": {\n    \"android\": \"react-native run-android\",\n    \"ios\": \"react-native run-ios\",\n    \"start\": \"react-native start\",\n    \"test\": \"jest\"\n  },\n  \"dependencies\": {\n    \"@react-native-community\/masked-view\": \"^0.1.10\",\n    \"@react-navigation\/native\": \"^5.7.3\",\n    \"@react-navigation\/stack\": \"^5.9.0\",\n    \"react\": \"16.13.1\",\n    \"react-native\": \"0.63.2\",\n    \"react-native-gesture-handler\": \"^1.8.0\",\n    \"react-native-reanimated\": \"^1.13.0\",\n    \"react-native-safe-area-context\": \"^3.1.8\",\n    \"react-native-screens\": \"^2.10.1\"\n  },\n  \"devDependencies\": {\n    \"@babel\/core\": \"^7.11.6\",\n    \"@babel\/runtime\": \"^7.11.2\",\n    \"@react-native-community\/eslint-config\": \"^1.1.0\",\n    \"babel-jest\": \"^26.3.0\",\n    \"eslint\": \"^7.10.0\",\n    \"jest\": \"^26.4.2\",\n    \"metro-react-native-babel-preset\": \"^0.63.0\",\n    \"react-test-renderer\": \"16.13.1\"\n  },\n  \"jest\": {\n    \"preset\": \"react-native\"\n  }\n}\n<\/code><\/pre>\n

    Building a Basic User Interface<\/h2>\n

    Now that we have a basic understanding of React Native and how to set up a new project, let’s build a simple user interface. For this tutorial, we’ll create a simple shopping list application that allows users to add items to their list.<\/p>\n

    Creating a New Component<\/h3>\n

    To get started, let’s create a new component that will display our shopping list. Create a new file called ShoppingList.js<\/code> in your src<\/code> directory and add the following code:<\/p>\n

    import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nexport default function ShoppingList() {\n  return (\n    <View style={styles.container}>\n      <Text style={styles.title}>Shopping List<\/Text>\n    <\/View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    paddingTop: 40,\n    paddingHorizontal: 20,\n    backgroundColor: '#fff',\n  },\n  title: {\n    fontSize: 32,\n    fontWeight: 'bold',\n    marginBottom: 20,\n  },\n});\n<\/code><\/pre>\n

    The ShoppingList<\/code> component is a simple functional component that returns a View<\/code> component containing a Text<\/code> component displaying the title of our shopping list. It also includes some basic styles to set the background color, font size, and spacing.<\/p>\n

    Using the Component in App.js<\/h3>\n

    Now that we have our ShoppingList<\/code> component, let’s use it in our App.js<\/code> file. Modify the App<\/code> function to look like this:<\/p>\n

    export default function App() {\n  return (\n    <View style={styles.container}>\n      <ShoppingList \/>\n    <\/View>\n  );\n}\n<\/code><\/pre>\n

    This will render the ShoppingList<\/code> component within our View<\/code> container.<\/p>\n

    Adding a Form to Add Items<\/h3>\n

    Now that we have the basic structure of our shopping list, let’s add a form that will allow us to add new items. Create a new file called AddItem.js<\/code> in your src<\/code> directory and add the following code:<\/p>\n

    import React, { useState } from 'react';\nimport { StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native';\nimport { AntDesign } from '@expo\/vector-icons';\n\nexport default function AddItem({ addItem }) {\n  const [text, setText] = useState('');\n\n  const handleChange = (value) => {\n    setText(value);\n  };\n\n  const handleSubmit = () => {\n    addItem(text);\n    setText('');\n  };\n\n  return (\n    <View style={styles.container}>\n      <TextInput\n        style={styles.input}\n        placeholder=\"Add Item...\"\n        value={text}\n        onChangeText={handleChange}\n      \/>\n      <TouchableOpacity style={styles.buttonContainer} onPress={handleSubmit}>\n        <AntDesign name=\"plus\" size={24} color=\"white\" \/>\n        <Text style={styles.buttonText}>Add<\/Text>\n      <\/TouchableOpacity>\n    <\/View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flexDirection: 'row',\n    justifyContent: 'space-between',\n    alignContent: 'center',\n    marginHorizontal: 20,\n    marginVertical: 10,\n  },\n  input: {\n    height: 40,\n    borderColor: '#ccc',\n    borderWidth: 1,\n    borderRadius: 5,\n    paddingHorizontal: 10,\n    marginRight: 5,\n    flex: 1,\n  },\n  buttonContainer: {\n    flexDirection: 'row',\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#000',\n    borderRadius: 5,\n    paddingHorizontal: 10,\n  },\n  buttonText: {\n    color: '#fff',\n    marginLeft: 5,\n    fontSize: 16,\n  },\n});\n<\/code><\/pre>\n

    The AddItem<\/code> component is a functional component that takes in a prop called addItem<\/code>. This prop is a function that will be called when the user adds a new item to the shopping list.<\/p>\n

    The component contains a TextInput<\/code> component and a TouchableOpacity<\/code> component. The TextInput<\/code> component allows users to input the name of the item they want to add, and the TouchableOpacity<\/code> component is a button that they can press to add the item to the list.<\/p>\n

    Using the AddItem Component in ShoppingList.js<\/h3>\n

    Now that we have our AddItem<\/code> component, let’s use it in our ShoppingList<\/code> component. Add the following code to the bottom of the ShoppingList<\/code> function:<\/p>\n

    const handleAddItem = (text) => {\n  console.log(text);\n};\n\nreturn (\n  <View style={styles.container}>\n    <Text style={styles.title}>Shopping List<\/Text>\n    <AddItem addItem={handleAddItem} \/>\n  <\/View>\n);\n<\/code><\/pre>\n

    This will display the AddItem<\/code> component below the title of our shopping list. The handleAddItem<\/code> function simply logs the text that’s passed in to the console for now, but we’ll update it later to actually add the item to our list.<\/p>\n

    Managing State to Update the UI<\/h2>\n

    Now that we have our basic application structure in place, let’s focus on managing state in order to update our UI as the user interacts with it.<\/p>\n

    Updating handleAddItem to Change State<\/h3>\n

    Currently, our handleAddItem<\/code> function simply logs the text that’s passed in to the console. Let’s update it to actually add the item to our list.<\/p>\n

    const [items, setItems] = useState([]);\n\nconst handleAddItem = (text) => {\n  setItems((prevItems) => [\n    ...prevItems,\n    { id: Math.random().toString(), text },\n  ]);\n};\n<\/code><\/pre>\n

    This creates a new state variable called items<\/code> that’s an empty array by default. The handleAddItem<\/code> function takes in the text<\/code> value that’s passed in from the AddItem<\/code> component and adds a new item to the items<\/code> array. The new item is an object with an id<\/code> property (which is a randomly generated string) and a text<\/code> property (which contains the value of the text<\/code> variable).<\/p>\n

    Displaying the List of Items<\/h3>\n

    Now that we’re adding items to our list, we need to display them in our UI. We can do this by mapping over the items<\/code> array and rendering a Text<\/code> component for each one.<\/p>\n

    <View style={styles.container}>\n  <Text style={styles.title}>Shopping List<\/Text>\n  <AddItem addItem={handleAddItem} \/>\n  {items.map((item) => (\n    <Text key={item.id}>{item.text}<\/Text>\n  ))}\n<\/View>\n<\/code><\/pre>\n

    This will render each item in our items<\/code> array as a Text<\/code> component with the text<\/code> value of the item.<\/p>\n

    Adding the ability to delete items<\/h3>\n

    Now that we have the ability to display our list of items, let’s add the ability to delete items when the user is done with them. We can do this by adding a delete button to each item that will remove it from the items<\/code> array.<\/p>\n

    <View style={styles.container}>\n  <Text style={styles.title}>Shopping List<\/Text>\n  <AddItem addItem={handleAddItem} \/>\n  {items.map((item) => (\n    <View key={item.id} style={styles.item}>\n      <Text style={styles.itemText}>{item.text}<\/Text>\n      <TouchableOpacity\n        style={styles.deleteButton}\n        onPress={() =>\n          setItems((prevItems) =>\n            prevItems.filter((prevItem) => prevItem.id !== item.id)\n          )\n        }\n      >\n        <Text style={styles.deleteButtonText}>Delete<\/Text>\n      <\/TouchableOpacity>\n    <\/View>\n  ))}\n<\/View>\n<\/code><\/pre>\n

    This code adds a new property to each item object called id<\/code>. We also render each item as a new component called Item<\/code>, which contains the Text<\/code> component displaying the text<\/code> value of the item as well as a TouchableOpacity<\/code> component that triggers the setItems<\/code> function with a new array of items that excludes the item with the ID that matches the current item’s ID.<\/p>\n

    Final Code<\/h3>\n

    Here’s the completed code for our simple shopping list application:<\/p>\n

    import React, { useState } from 'react';\nimport { StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native';\nimport { AntDesign } from '@expo\/vector-icons';\n\nexport default function App() {\n  const [items, setItems] = useState([]);\n\n  const handleAddItem = (text) => {\n    setItems((prevItems) => [\n      ...prevItems,\n      { id: Math.random().toString(), text },\n    ]);\n  };\n\n  return (\n    <View style={styles.container}>\n      <Text style={styles.title}>Shopping List<\/Text>\n      <AddItem addItem={handleAddItem} \/>\n      {items.map((item) => (\n        <View key={item.id} style={styles.item}>\n          <Text style={styles.itemText}>{item.text}<\/Text>\n          <TouchableOpacity\n            style={styles.deleteButton}\n            onPress={() =>\n              setItems((prevItems) =>\n                prevItems.filter((prevItem) => prevItem.id !== item.id)\n              )\n            }\n          >\n            <Text style={styles.deleteButtonText}>Delete<\/Text>\n          <\/TouchableOpacity>\n        <\/View>\n      ))}\n    <\/View>\n  );\n}\n\nfunction AddItem({ addItem }) {\n  const [text, setText] = useState('');\n\n  const handleChange = (value) => {\n    setText(value);\n  };\n\n  const handleSubmit = () => {\n    addItem(text);\n    setText('');\n  };\n\n  return (\n    <View style={styles.container}>\n      <TextInput\n        style={styles.input}\n        placeholder=\"Add Item...\"\n        value={text}\n        onChangeText={handleChange}\n      \/>\n      <TouchableOpacity style={styles.buttonContainer} onPress={handleSubmit}>\n        <AntDesign name=\"plus\" size={24} color=\"white\" \/>\n        <Text style={styles.buttonText}>Add<\/Text>\n      <\/TouchableOpacity>\n    <\/View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    paddingTop: 40,\n    paddingHorizontal: 20,\n    backgroundColor: '#fff',\n  },\n  title: {\n    fontSize: 32,\n    fontWeight: 'bold',\n    marginBottom: 20,\n  },\n  item: {\n    flexDirection: 'row',\n    justifyContent: 'space-between',\n    alignItems: 'center',\n    borderColor: '#ccc',\n    borderWidth: 1,\n    borderRadius: 5,\n    paddingHorizontal: 10,\n    paddingVertical: 10,\n    marginVertical: 5,\n  },\n  itemText: {\n    fontSize: 18,\n  },\n  deleteButton: {\n    backgroundColor: '#ff0000',\n    borderRadius: 5,\n    paddingHorizontal: 10,\n    paddingVertical: 5,\n  },\n  deleteButtonText: {\n    color: '#fff',\n  },\n  input: {\n    height: 40,\n    borderColor: '#ccc',\n    borderWidth: 1,\n    borderRadius: 5,\n    paddingHorizontal: 10,\n    marginRight: 5,\n    flex: 1,\n  },\n  buttonContainer: {\n    flexDirection: 'row',\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#000',\n    borderRadius: 5,\n    paddingHorizontal: 10,\n  },\n  buttonText: {\n    color: '#fff',\n    marginLeft: 5,\n    fontSize: 16,\n  },\n});\n<\/code><\/pre>\n

    Conclusion<\/h2>\n

    In this tutorial, we covered the basics of getting started with React Native, including setting up a new project, creating components, managing state, and updating the UI. By following this tutorial, you should now have a better understanding of how to build mobile applications using React Native. With this knowledge, you can continue to build more complex applications and explore the vast array of libraries and tools available for React Native development.<\/p>\n","protected":false},"excerpt":{"rendered":"

    React Native offers developers the ability to build mobile applications using the same technologies used for web development. It allows developers to create cross-platform mobile apps while reusing as much code as possible, reducing development time and effort. In this tutorial, we’ll walk through the basics of getting started with Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[606,425,156,9,605],"yoast_head":"\nGetting Started with React Native - Pantherax Blogs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/localhost:10003\/getting-started-with-react-native\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started with React Native\" \/>\n<meta property=\"og:description\" content=\"React Native offers developers the ability to build mobile applications using the same technologies used for web development. It allows developers to create cross-platform mobile apps while reusing as much code as possible, reducing development time and effort. In this tutorial, we’ll walk through the basics of getting started with Continue Reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/localhost:10003\/getting-started-with-react-native\/\" \/>\n<meta property=\"og:site_name\" content=\"Pantherax Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T23:13:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-05T05:48:27+00:00\" \/>\n<meta name=\"author\" content=\"Panther\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Panther\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t \"@context\": \"https:\/\/schema.org\",\n\t \"@graph\": [\n\t {\n\t \"@type\": \"Article\",\n\t \"@id\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/#article\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/\"\n\t },\n\t \"author\": {\n\t \"name\": \"Panther\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\"\n\t },\n\t \"headline\": \"Getting Started with React Native\",\n\t \"datePublished\": \"2023-11-04T23:13:57+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:27+00:00\",\n\t \"mainEntityOfPage\": {\n\t \"@id\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/\"\n\t },\n\t \"wordCount\": 1276,\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"keywords\": [\n\t \"\\\"Cross-Platform Development\\\"]\",\n\t \"\\\"Getting Started\\\"]\",\n\t \"\\\"JavaScript\\\"\",\n\t \"\\\"mobile app development\\\"\",\n\t \"\\\"React Native\\\"\"\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"WebPage\",\n\t \"@id\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/\",\n\t \"url\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/\",\n\t \"name\": \"Getting Started with React Native - Pantherax Blogs\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#website\"\n\t },\n\t \"datePublished\": \"2023-11-04T23:13:57+00:00\",\n\t \"dateModified\": \"2023-11-05T05:48:27+00:00\",\n\t \"breadcrumb\": {\n\t \"@id\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/#breadcrumb\"\n\t },\n\t \"inLanguage\": \"en-US\",\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"ReadAction\",\n\t \"target\": [\n\t \"http:\/\/localhost:10003\/getting-started-with-react-native\/\"\n\t ]\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"BreadcrumbList\",\n\t \"@id\": \"http:\/\/localhost:10003\/getting-started-with-react-native\/#breadcrumb\",\n\t \"itemListElement\": [\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 1,\n\t \"name\": \"Home\",\n\t \"item\": \"http:\/\/localhost:10003\/\"\n\t },\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 2,\n\t \"name\": \"Getting Started with React Native\"\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"WebSite\",\n\t \"@id\": \"http:\/\/localhost:10003\/#website\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"description\": \"\",\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\"\n\t },\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"SearchAction\",\n\t \"target\": {\n\t \"@type\": \"EntryPoint\",\n\t \"urlTemplate\": \"http:\/\/localhost:10003\/?s={search_term_string}\"\n\t },\n\t \"query-input\": \"required name=search_term_string\"\n\t }\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"Organization\",\n\t \"@id\": \"http:\/\/localhost:10003\/#organization\",\n\t \"name\": \"Pantherax Blogs\",\n\t \"url\": \"http:\/\/localhost:10003\/\",\n\t \"logo\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\",\n\t \"url\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"contentUrl\": \"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg\",\n\t \"width\": 1024,\n\t \"height\": 1024,\n\t \"caption\": \"Pantherax Blogs\"\n\t },\n\t \"image\": {\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/logo\/image\/\"\n\t }\n\t },\n\t {\n\t \"@type\": \"Person\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7\",\n\t \"name\": \"Panther\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10003\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"contentUrl\": \"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g\",\n\t \"caption\": \"Panther\"\n\t },\n\t \"sameAs\": [\n\t \"http:\/\/localhost:10003\"\n\t ],\n\t \"url\": \"http:\/\/localhost:10003\/author\/pepethefrog\/\"\n\t }\n\t ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Getting Started with React Native - Pantherax Blogs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/localhost:10003\/getting-started-with-react-native\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started with React Native","og_description":"React Native offers developers the ability to build mobile applications using the same technologies used for web development. It allows developers to create cross-platform mobile apps while reusing as much code as possible, reducing development time and effort. In this tutorial, we’ll walk through the basics of getting started with Continue Reading","og_url":"http:\/\/localhost:10003\/getting-started-with-react-native\/","og_site_name":"Pantherax Blogs","article_published_time":"2023-11-04T23:13:57+00:00","article_modified_time":"2023-11-05T05:48:27+00:00","author":"Panther","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Panther","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/localhost:10003\/getting-started-with-react-native\/#article","isPartOf":{"@id":"http:\/\/localhost:10003\/getting-started-with-react-native\/"},"author":{"name":"Panther","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7"},"headline":"Getting Started with React Native","datePublished":"2023-11-04T23:13:57+00:00","dateModified":"2023-11-05T05:48:27+00:00","mainEntityOfPage":{"@id":"http:\/\/localhost:10003\/getting-started-with-react-native\/"},"wordCount":1276,"publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"keywords":["\"Cross-Platform Development\"]","\"Getting Started\"]","\"JavaScript\"","\"mobile app development\"","\"React Native\""],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/localhost:10003\/getting-started-with-react-native\/","url":"http:\/\/localhost:10003\/getting-started-with-react-native\/","name":"Getting Started with React Native - Pantherax Blogs","isPartOf":{"@id":"http:\/\/localhost:10003\/#website"},"datePublished":"2023-11-04T23:13:57+00:00","dateModified":"2023-11-05T05:48:27+00:00","breadcrumb":{"@id":"http:\/\/localhost:10003\/getting-started-with-react-native\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/localhost:10003\/getting-started-with-react-native\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/localhost:10003\/getting-started-with-react-native\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost:10003\/"},{"@type":"ListItem","position":2,"name":"Getting Started with React Native"}]},{"@type":"WebSite","@id":"http:\/\/localhost:10003\/#website","url":"http:\/\/localhost:10003\/","name":"Pantherax Blogs","description":"","publisher":{"@id":"http:\/\/localhost:10003\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost:10003\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/localhost:10003\/#organization","name":"Pantherax Blogs","url":"http:\/\/localhost:10003\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/","url":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","contentUrl":"http:\/\/localhost:10003\/wp-content\/uploads\/2023\/11\/cropped-9e7721cb-2d62-4f72-ab7f-7d1d8db89226.jpeg","width":1024,"height":1024,"caption":"Pantherax Blogs"},"image":{"@id":"http:\/\/localhost:10003\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/localhost:10003\/#\/schema\/person\/b63d816f4964b163e53cbbcffaa0f3d7","name":"Panther","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10003\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b8c0eda5a49f8f31ec32d0a0f9d6f838?s=96&d=mm&r=g","caption":"Panther"},"sameAs":["http:\/\/localhost:10003"],"url":"http:\/\/localhost:10003\/author\/pepethefrog\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3967"}],"collection":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/comments?post=3967"}],"version-history":[{"count":1,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3967\/revisions"}],"predecessor-version":[{"id":4603,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/posts\/3967\/revisions\/4603"}],"wp:attachment":[{"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/media?parent=3967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/categories?post=3967"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:10003\/wp-json\/wp\/v2\/tags?post=3967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}