Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 5263 Name ad Date/Time 06-Oct-2022 09:14:08 AM

Copy text from below

import React, {useState} from 'react';

import {View, StyleSheet, Text} from 'react-native';

 

export default function App() {

 

const [names]=useState

([

  {id: 1, name: "Javed", cgpa: 3.0},

  {id: 2, name: "Noman", cgpa: 2.7},

  {id: 3, name: "Ali", cgpa: 3.7},

  {id: 4, name: "Faisal", cgpa: 3.3},

  {id: 5, name: "Shahid", cgpa: 4.0},

  {id: 6, name: "Kamal", cgpa: 3.1},

  {id: 7, name: "Zahid", cgpa: 2.3}

  ]);

 

  return (

    <View>

      {

        names.map(

          (item)=> (

            <Text

            key={item.names}

            style={[item.cgpa>=2 && item.cgpa<3 && styles.redFont , item.cgpa>=3 && item.cgpa<3.7 && styles.blueFont, item.cgpa>=3.7 &&styles.italicFont ]} 

            >{item.id} {item.name} {item.cgpa}</Text>

          )

        )

        }

    </View>

  );

}

 

const styles=StyleSheet.create

(

  {

    redFont:

    {

      color:'red',

      fontWeight: 'bold',

    },

    blueFont:

    {

      color: 'blue'

    },

    italicFont:

    {

      fontStyle: 'italic',

      fontWeight:'bold',

      color: 'green'

 

    }

  }

)





comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
5549 MET Feb8 07-Feb-2023 04:25:44 PM
5548 Test12 Feb8 07-Feb-2023 04:24:15 PM
5547 Test8 Feb8 07-Feb-2023 04:21:12 PM
5546 Test11 Feb8 07-Feb-2023 04:20:25 PM
5545 Test5 Feb8 07-Feb-2023 04:17:39 PM
5544 Test4 Feb8 07-Feb-2023 04:16:37 PM
5543 Test3 Feb8 07-Feb-2023 04:13:50 PM
5542 Test 2 Feb8 07-Feb-2023 04:11:23 PM
5541 Test 1 Feb8 07-Feb-2023 04:07:22 PM
5540 rstf 07-Feb-2023 04:06:59 PM
5539 anf 07-Feb-2023 04:06:42 PM
5538 pplgc 07-Feb-2023 04:06:30 PM
5537 nfwa 07-Feb-2023 04:06:17 PM
5536 asdf 07-Feb-2023 04:05:56 PM
5535 asdf 07-Feb-2023 04:05:46 PM
5534 paf 07-Feb-2023 04:05:35 PM
5533 npshf 07-Feb-2023 04:05:24 PM
5532 asdf 07-Feb-2023 04:05:09 PM
5531 HOT SEXY 07-Feb-2023 08:35:42 AM
5530 . 06-Feb-2023 08:19:39 PM
5529 Korea Sexy 02-Feb-2023 09:16:33 AM
5528 MET Feb1 31-Jan-2023 08:35:06 PM
5527 Test12 Feb1 31-Jan-2023 08:30:52 PM
5526 Test11 Feb1 31-Jan-2023 08:13:39 PM
5525 Test 8 Feb1 31-Jan-2023 08:06:15 PM
5524 Test5 Feb1 31-Jan-2023 07:58:32 PM
5523 Test 4 Feb1 31-Jan-2023 07:55:20 PM
5522 Test 3 feb1 31-Jan-2023 07:51:14 PM
5521 Test 2 Feb1 31-Jan-2023 07:47:23 PM
5520 Test 1 feb1 31-Jan-2023 07:46:16 PM

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 [Next] [Last]
 
web counter
web counter


To report any error messages or bugs, or other issues, please send email at: info@pakproject.com