Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 5704 Name ghhascshgcvs Date/Time 22-May-2023 05:00:15 PM

Copy text from below
import React,{useState} from 'react';
import { Button, View,ScrollView ,Text,TouchableOpacity,StyleSheet} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import {TextInput} from 'react-native-paper';



function Input({navigation}) {
 
const [name, setName] = useState("");
const [pass, setPass] = useState("");


return (
<ScrollView contentContainerStyle = {styles.container}>
    <View style = {{flexDirection:'row',paddingTop:5}}>
    <Text style={{fontWeight:"bold",fontSize:20,paddingTop:18,paddingRight:12}}>Username   </Text>
    <TextInput
      label="Username"
      mode="outlined"
      style={{margin: 10,width:180,height:35}}
      default={name}
      onChangeText = {text => setName(text)}
      />
    </View>
    <View style = {{flexDirection:'row'}}>
    <Text style={{fontWeight:"bold",fontSize:20,paddingTop:35,paddingRight:10}}>Password  </Text>
    <TextInput
      label="Password"
      mode="outlined"
      secureTextEntry={true}
      style={{marginBottom: 24,width:180,height:35,marginLeft:12,marginTop:25}}
      default={pass}
      onChangeText = {text => setPass(text)}
      />
    </View>


   
   
    <TouchableOpacity style={styles.button}

onPress={()=>{navigation.navigate("Display",
{name:name,pass:pass}
)

}
}
>
<Text style={styles.btnText}>Submit</Text>
</TouchableOpacity>



</ScrollView>
);
}



function MyDisplay({navigation,route}) {
  return (
    <View style={{ flex: 1, marginLeft:20,marginTop:40 }}>
 <Text style={styles.displaytext}>Username :  {route.params.name}</Text>
 <Text style={styles.displaytext}>Password :  {route.params.pass}</Text>

</View>

  )}


const Stack = createNativeStackNavigator();

function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen name="Data_input" component={Input} options={{ title: 'CuOnline' }} />
        <Stack.Screen name="Display" component={MyDisplay} options={{ title: 'Display Screen' }}/>
      </Stack.Navigator>
    </NavigationContainer>
  );
}
const styles = StyleSheet.create({
  container: {
    justifyContent:'center',
    backgroundColor: '#ecf0f1',
    padding: 8,
    flexDirection:'column',
    marginLeft:16,
    marginTop:75

  },

 
  button:{
    marginTop:25,
    width:120,
    padding: 10,
    borderRadius: 4,
    borderWidth: 1,
    borderColor: '#01516b',
    backgroundColor:"#008CBA",
    marginLeft: 120,
      },
      btnText: {
        color:"white",
        fontWeight: 'bold',
        textAlign: 'center',
      },
      displaytext:{
        fontWeight: 'bold',
        fontSize:20
      }
  });
export default App;




comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
5744 Cute Sexy 22-Jul-2023 08:18:25 AM
5743 KIDs Sexy 17-Jul-2023 10:18:41 AM
5742 dfa 11-Jul-2023 09:08:36 AM
5741 HOT CHILD 11-Jul-2023 08:53:45 AM
5740 jj assigment 11-Jul-2023 08:43:20 AM
5739 07-Jul-2023 08:20:42 PM
5738 Kid Sexy 26-Jun-2023 09:33:43 AM
5737 mmmmm 24-Jun-2023 07:31:13 PM
5736 ....... 24-Jun-2023 07:17:01 PM
5735 Child Sexy 22-Jun-2023 10:15:56 AM
5734 Mm 20-Jun-2023 09:15:38 PM
5733 Kkk 20-Jun-2023 09:13:08 PM
5732 Ko 20-Jun-2023 08:44:44 PM
5731 bhatti 420 20-Jun-2023 10:53:59 AM
5730 Abc 20-Jun-2023 08:57:46 AM
5729 Lab 20-Jun-2023 08:53:25 AM
5728 ..... 20-Jun-2023 08:38:08 AM
5727 Best S.E.X.Y 17-Jun-2023 07:31:25 AM
5726 Aab 15-Jun-2023 09:29:28 PM
5725 a 13-Jun-2023 10:33:05 PM
5724 Child Vids 12-Jun-2023 11:21:50 AM
5723 Emi Pet 12-Jun-2023 06:50:51 AM
5722 cmd 06-Jun-2023 12:24:35 PM
5721 CHILD HOT 05-Jun-2023 09:08:42 AM
5720 Lakestone En 04-Jun-2023 05:08:53 PM
5719 . 03-Jun-2023 01:20:03 PM
5718 code 29-May-2023 05:50:57 PM
5717 link 29-May-2023 04:39:14 PM
5716 K1d S3xy 29-May-2023 12:49:04 PM
5715 code 29-May-2023 10:13:03 AM

[First] [Prev] 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