Skip to content

Instantly share code, notes, and snippets.

View mdshadman's full-sized avatar
🎗️
Focusing

Md Shadman Alam mdshadman

🎗️
Focusing
  • Ex-Infoscion | Ex-Enappd | Ex-Blueskyinventions
  • Bengaluru, India
View GitHub Profile
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Home
</ion-title>
</ion-toolbar>
</ion-header>
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Home
</ion-title>
</ion-toolbar>
</ion-header>
import { Component } from '@angular/core';
import { BarcodeScanner, BarcodeScannerOptions } from '@ionic-native/barcode-scanner/ngx';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
scannedData: any;
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-buttons slot="end">
<ion-button (click)="closeScanner()" color="success" expand="block">Close Scanner</ion-button>
</ion-buttons>
<ion-title>
QR Scan
import { Component } from '@angular/core';
import { QRScanner, QRScannerStatus } from '@ionic-native/qr-scanner/ngx';
@Component({
selector: 'app-tab1',
templateUrl: 'tab1.page.html',
styleUrls: ['tab1.page.scss']
})
export class Tab1Page {
import React, { Component } from 'react';
import LoginView from './LoginView.js';
import firebase from 'react-native-firebase';
import { Text, Button, Card } from 'native-base';
import { View } from 'react-native';
import { TextInput } from 'react-native-gesture-handler';
import { withNavigation } from 'react-navigation';
import SpinnerComponent from '../Loader/LoaderView.js';
import styles from './Loginstyles';
import React, { Component } from 'react';
import { Container, Text, Button, Card, } from 'native-base';
import { TextInput } from 'react-native-gesture-handler';
import { View, ImageBackground } from 'react-native';
import styles from './Loginstyles';
const LoginView = (props) => {
const {
user,
import React, { Component } from 'react'
import { Dimensions } from 'react-native';
const height = Dimensions.get('screen').height
const width = Dimensions.get('screen').width
export default styles = {
fullwidthHeight: {
width: width,
height: height,
@mdshadman
mdshadman / modal.js
Created August 5, 2019 07:37
Here i am adding and updating image and data in the collection using the same modal but with different functions
import React, { Component } from 'react'
import { Container, Content, Text, Button, Header, Left, Body, Right, Icon, Form, Item, Input, Card, ListItem, CardItem, Thumbnail, Label, Toast } from 'native-base';
import { Switch } from 'react-native';
import CameraGallery from '../CameraGallery/CameraGallery';
import firebase from 'react-native-firebase';
import SpinnerComponent from '../../src/screens/Loader/LoaderView';
class ModalContainer extends Component {
constructor(props) {
super(props);