This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from 'react'; | |
import { | |
Text, | |
SafeAreaView, | |
StyleSheet, | |
Dimensions, | |
View, | |
TextInput, | |
Button, | |
ImageBackground, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |