Posts

Showing posts with the label React Native

React Native Spring Boot: Full-stack CRUD example

Image
Here's a full-stack CRUD example using React Native as the front-end and Spring Boot 3 as the back-end. This example covers the setup and integration to manage tasks in a simple to-do list application. 1. Spring Boot Back-End Add Dependencies to pom.xml <dependencies> <dependency> <groupId> org.springframework.boot </groupId> <artifactId> spring-boot-starter-web </artifactId> </dependency> <dependency> <groupId> org.springframework.boot </groupId> <artifactId> spring-boot-starter-data-jpa </artifactId> </dependency> <dependency> <groupId> com.h2database </groupId> <artifactId> h2 </artifactId> <scope> runtime </scope> </dependency> </dependencies> Configure H2 Database in application.properties spring .datasource .url =jdbc: h2 :mem:tasksdb spring .datasourc...

React Native DatePicker for Mobile Application - Example

Image
In this section, we will learn how to use DatePicker with  React native application.   User Interface: Implementation:   You must set up your local development environment. Follow the below link to set up your local environment. React Native - Environment Setup - Create a new project After executing the commands mentioned in this link, a folder with a specified name will generate with the following contents. Add react-native-datepicker-dialogue and moment library inside your project  npm i react-native-datepicker-dialog --save npm install --save moment react-moment  Next, we are going to edit the App.js file and write the below code.   App.js: import React, { Component } from 'react' ; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity } from 'react-native' ; import { DatePickerDialog } from 'react-native-datepicker-dialog' import moment from 'moment' ; export default class App extends Component { ...

React Native - Flexbox - Mobile App Development

Image
Flexbox is a layout technique that is utilized to structure the layout of our application in a responsive manner. Flexbox provides three main properties to achieve the desired layout. These properties are flexDirection, justifyContent, and alignItems. f lexDirection (column, row) : Used to align its elements vertically or horizontally. justifyContent (center, flex-start, flex-end, space-around, space-between):  Used to distribute the elements inside the container. alignItems (center, flex-start, flex-end, stretched): Used to distribute the element inside the container along the secondary axis. Our demo app screen will look like this − flexDirection(row) Implementation First, You must set up your local development environment. Follow the below link to set up your local environment. React Native - Environment Setup - Create a new project After executing the commands mentioned in this  link , a folder with a specified name is created with the following contents. Edit the  ...