Func_comp

PHOTO EMBED

Tue May 04 2021 11:50:49 GMT+0000 (Coordinated Universal Time)

Saved by @arsal

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

const Func_comp = (props) => {
    function SignUp2()
    {
        alert("Hi, Signup Class with other func.")
    }

    const SignUp = (Num) =>
    {
        alert("Hi, Signup Class with other func." + Num)
    }
  console.warn(props)
    return (
      <View>
        <Button title="Login" onPress={()=>alert("Hi, Func Component!")}/>
        <Button title="SignUp" onPress={SignUp.bind(this, "100")}/>
        <Text>{props.Data}</Text>
      </View>
    )
  }

  export default Func_comp
content_copyCOPY