Skip to content

Instantly share code, notes, and snippets.

@RaguRam1991
RaguRam1991 / home.js
Last active July 12, 2024 14:24
react native qrcdoe scanner / qr code reader
import React, { useState } from "react";
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Dimensions,
} from "react-native";
import Ionicons from "react-native-vector-icons/Ionicons";
import QRScanner from "./qrScanner";
import { useState } from 'react';
import {
Text,
SafeAreaView,
StyleSheet,
Dimensions,
View,
TextInput,
Button,
ImageBackground,
/*
search in list
sample search result item
sample data
basic page structure with searchinput,flatlist
search functionality in post title
adding if conditions
lowercase
search functionality in post description same as post title
@RaguRam1991
RaguRam1991 / commentSection.js
Last active January 2, 2024 11:22
comment section ui react native
/*
prepare sample data array
base structure. title and list
design model ui
design comment item username and comment text
design comment item profile picture
add styles
adjust margin and padding
form data array in useeffect
test the result
var arr = [];
var arr1;
var crit = {"prsn": "", "age": 20, "color": ""};
void main() {
for (int i = 0; i < 3; i++) {
arr.add({"prsn": "name${i + 1}", "age": 25 + i, "color": "green"});
//arr[i]=i+1;
}