2017-03-25 1 views

답변

0

꽤 괜찮은 것 같습니다. 그냥 스타일을 추가해야합니다. 내 다음과 같이 보일 것이다 렌더링 그렇게하려면

<Image source={require(url)} 
     style={{ 
      height: 100, 
      width: null, 
      right: 0, 
      left: 0}} 
    > 
    <TextInput 
     style={{ 
      position: 'absolute', 
      height: 20, 
      width 60, 
      fontSize: 24, 
      fontWeight: '600', 
      backgroundColor: 'transparent', 
      color: white}} 
     /> 
    </Image> 

은 그런 "편집"또는 뭔가 단지 표시하고의 TextInput를 숨기는 기능을 트리거하는 onPress 어딘가에 TouchableOpacity를 슬로우 확인하십시오.

+1

와우, 당신은 그렇게 단순한 하하를 만들었습니다. 어떻게 저를 들어 올릴 지 생각할 수 없었습니다. 고맙습니다! –

관련 문제