Tuesday, 20 July 2021

Which type of Android phone is applicable for battleground Mobile India

 PUBG mobile India has relaunched as Battlegrounds mobile India. After launching in India on July the game caught in the same data sharing controversy with Chinese servers. This time the publisher of the game reacted quickly and release an update to stop data privacy.


                   

Android phone , battleground Mobile India


Currently Battlegrounds mobile India released only in Google play store for android user and not available for iOS users. As soon as Battlegrounds mobile India released in play store the games hits 10M+ downloads.


To install the app click the link  Battleground Mobile India

Currently the game supported in Android Lollipop (5.1.1) and above and  at least 2GB RAM memory 


Friday, 16 July 2021

How To Create React Login Page Using ANT Design part-2

In Part-1 we discuss about how to install react application and ant design and icons. And how to create login page.

Here I am going to explain how to build react app and use the login page in your application

Import Login page in App.js

import Login from './Authentication/Login'

Add Below line in your App.js

<Login></Login>

To build a react app run below command

npm start

React Login Page , ANT Design, React

Happy Coding:)




How To Create React Login Page Using ANT Design

 Here I am going to explain how to create react login page using react js and ant design.

    

           

React Login Page , ANT Design, React


Step 1 ) Create react application 

     To create react application run below command. For more info click here

        npx create-react-app myfirstreact


Step 2) Install ant design and ant icons

     To install ant design in react 

      npm install antd

  and then install ant icons

npm install --save @ant-design/icons for more info click here


Step 3) Create Login.js page

        To create login page using ant and ant icons ,import Form, Input, Button, UserOutlined, LockOutlined

import {FormInputButtonfrom 'antd';
import {  UserOutlinedLockOutlined  }  from  '@ant-design/icons';
import React from 'react';
import logo from '../icons/logo.png';
import './Login.css'
import 'antd/dist/antd.css';


class Login extends React.Component
  {

    render () {
    const onFinish = async (values=> {
     
      alert(values.username);
     
    };
  
  
  return (
    <header className="Login-header">
        <img src={logo} className="App-logo" alt="logo" />
        <Spin spinning={this.state.loading}></Spin>
      
    <Form
      name="normal_login"
      className="login-form"
      onFinish={onFinish}>
      <Form.Item
        name="username"
        rules={[
          {
            required: true,
            message: 'Please input your Username!',
          },
        ]}>
        <Input prefix={<UserOutlined className="site-form-item-icon" />} 
placeholder="Username" />
      </Form.Item>
      <Form.Item
        name="password"
        rules={[
          {
            required: true,
            message: 'Please input your Password!',
          },
        ]}>
        <Input
          prefix={<LockOutlined className="site-form-item-icon" />}
          type="password"
          placeholder="Password"
        />
      </Form.Item>
      <Form.Item>
      <Button type="primary" htmlType="submit" className="login-form-button">
          Log in
      </Button>
       
      </Form.Item>
    </Form>
    </header> 
  );

}

export default Login;

Step 4) Create Login.css

.Login-header
{

    background-color#282c34;
    min-height100vh;
    text-aligncenter;
    displayflex;
    flex-directioncolumn;
    align-itemscenter;
    justify-contentcenter;
    font-sizecalc(20px + 3vmin);
    colorwhite;
}

 So far we discuss about how to install react application and ant design and icons. And also

how to create login page . In next part we will discuss how to build react app. To learn more

click here




 


Friday, 9 July 2021

Create popup Alert in React application

 Here I am going to explain how to create alert popup in React 



React application, Create popup Alert, antd alert

Before proceeding to this tutorial . Learn how to install ant design in react Click here

After installing Ant design follow bellow steps 

import { Popconfirm } from 'antd';

<Popconfirm
    title="Are you sure to delete this task?"
    onConfirm={this.confirm}
    onCancel={this.cancel}
    okText="Yes"
    cancelText="No">
    <a href="#">Delete</a>
</Popconfirm>

Happy Coding :)