본문 바로가기 메뉴 바로가기

개발 노트

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발 노트

검색하기 폼
  • 분류 전체보기 (65)
    • android (38)
    • linux (4)
    • React Native (8)
    • Mongo DB (2)
    • Mac (1)
    • javascript (1)
    • algorithm (1)
    • kotlin (7)
  • 방명록

spannableText (1)
react native spannableText 특정 텍스트에 색칠하기..

구글링 해보니까 모듈 있던데 이런 단순한 기능 쓰려고 모듈 다운받는건 내키지 않아서 직접 만들었다. 저번에 안드로이드 네이티브에서도 만들었었는데... js로 react native에서 또 만드네..... 코드 전문 하단.. 파라미터 값으려 전체 텍스트와 색칠할 텍스트를 받는다. import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; export default SpannableText = ({ fullText, piece }) => { let text = fullText; let cText = piece; let textLength = cText.length; let view = []..

React Native 2020. 8. 10. 20:34
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 차번호 정규식
  • nosql
  • 귀찮아;;
  • Android
  • 명령어
  • 구글 맵 선그리기
  • react native state
  • mongo db
  • https://hwan-shell.tistory.com/244
  • ubunut 설치 link
  • text 부분 색 칠하기
  • rn
  • adb 환경변수
  • 차번호 정규표현식
  • 클래스형 코드
  • React Native
  • 함수형 코드
  • mac android
  • 데이터베이스
  • insert
  • spannableText
  • 구글 맵 경로 그리기
  • not starting .bash_profile
  • https://medium.com/@limgyumin/%EC%BD%94%ED%8B%80%EB%A6%B0-%EC%9D%98-apply-with-let-also-run-%EC%9D%80-%EC%96%B8%EC%A0%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%EA%B0%80-4a517292df29
  • not found adb
  • 안드로이드
  • ubunut android
  • not working adb
  • MongoDB
  • 자바
more
«   2026/05   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바