parent
2753d26cc3
commit
7e4d2e5f91
@ -1,30 +0,0 @@
|
|||||||
import { FC, ReactNode } from "react"
|
|
||||||
import { View, TextInput,Text } from "react-native"
|
|
||||||
import React from "react"
|
|
||||||
import { trace } from "console"
|
|
||||||
import { Game } from "../core/game"
|
|
||||||
|
|
||||||
/*
|
|
||||||
Importing the correct stylesheet
|
|
||||||
*/
|
|
||||||
import styles from "./style/TextInput.style"
|
|
||||||
|
|
||||||
export const CustomTextInput :
|
|
||||||
/*
|
|
||||||
* game : Game that must be displayed
|
|
||||||
* nav : tool needed to allow the navigation between the screens
|
|
||||||
*/
|
|
||||||
FC<{placeholder:String,text:String}> =
|
|
||||||
({placeholder, text}) =>
|
|
||||||
{
|
|
||||||
const [value, onChangeText] = React.useState(placeholder);
|
|
||||||
return (
|
|
||||||
<View>
|
|
||||||
<Text style={styles.section}>{text}</Text>
|
|
||||||
<TextInput
|
|
||||||
style={styles.input}
|
|
||||||
onChangeText= {onChangeText}
|
|
||||||
/>
|
|
||||||
</View>
|
|
||||||
)
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
import { StyleSheet } from 'react-native';
|
|
||||||
|
|
||||||
export default StyleSheet.create({
|
|
||||||
input: {
|
|
||||||
height: 40,
|
|
||||||
width: 250,
|
|
||||||
marginBottom:12,
|
|
||||||
borderWidth: 1,
|
|
||||||
padding: 10,
|
|
||||||
alignContent:'center',
|
|
||||||
backgroundColor:'white'
|
|
||||||
},
|
|
||||||
section:{
|
|
||||||
fontSize:15,
|
|
||||||
alignSelf:'left',
|
|
||||||
marginLeft:10,
|
|
||||||
color:'white',
|
|
||||||
},
|
|
||||||
})
|
|
Loading…
Reference in new issue