• A-Fu Design
  • 前端設計
    • jQuery 套件
    • HTML 5
  • 關於A-Fu
  • 隱私權政策
  • 聯絡A-Fu
Google+ facebook twitter

A-Fu Design

A-Fu Design

Facebook Open Source React Native
Text Style Props


Props


  • textShadowOffset
  • color
  • fontSize
  • fontStyle
  • fontWeight
  • lineHeight
  • textAlign
  • textDecorationLine
  • textShadowColor
  • fontFamily
  • textShadowRadius
  • includeFontPadding
  • textAlignVertical
  • fontVariant
  • letterSpacing
  • textDecorationColor
  • textDecorationStyle
  • textTransform
  • writingDirection

參考

Props

textShadowOffset

TYPEREQUIRED
object: {width: number,height: number}No

color

TYPEREQUIRED
colorNo

fontSize

TYPEREQUIRED
numberNo

fontStyle

TYPEREQUIRED
enum('normal', 'italic')No

fontWeight

指定字體粗細。大多數字體都支持“正常”和“粗體”值。並非所有字體都具有每個數值的變體,在這種情況下,選擇最接近的字體。

TYPEREQUIRED
enum('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900')No

lineHeight

TYPEREQUIRED
numberNo

textAlign

指定文本對齊。值'justify'僅在iOS上支持,在Android上支持後備。
TYPEREQUIRED
enum('auto', 'left', 'right', 'center', 'justify')No

textDecorationLine

TYPEREQUIRED
enum('none', 'underline', 'line-through', 'underline line-through')No

textShadowColor

TYPEREQUIRED
colorNo

fontFamily

TYPEREQUIRED
stringNo

textShadowRadius

TYPEREQUIRED
numberNo

includeFontPadding

設置為false以刪除旨在為某些上升/下降器騰出空間的額外字體填充。對於某些字體,此填充可以使文本在垂直居中時看起來略微錯位。為獲得最佳效果,還將textAlignVertical設置為居中。默認為true。
TYPEREQUIREDPLATFORM
boolNoAndroid

textAlignVertical

TYPEREQUIREDPLATFORM
enum('auto', 'top', 'bottom', 'center')NoAndroid

fontVariant

TYPEREQUIREDPLATFORM
array of enum('small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums')NoiOS

letterSpacing

TYPEREQUIREDPLATFORM
numberNoiOS

textDecorationColor

TYPEREQUIREDPLATFORM
colorNoiOS

textDecorationStyle

TYPEREQUIREDPLATFORM
enum('solid', 'double', 'dotted', 'dashed')NoiOS

textTransform

TYPEREQUIREDPLATFORM
enum('none', 'uppercase', 'lowercase', 'capitalize')NoiOS

writingDirection

TYPEREQUIREDPLATFORM
enum('auto', 'ltr', 'rtl')NoiOS




Share
Tweet
Pin
Share
No 意見
Facebook Open Source React Native


Systrace

Methods


  • installReactHook
  • setEnabled
  • isEnabled
  • beginEvent
  • endEvent
  • beginAsyncEvent
  • endAsyncEvent
  • counterEvent
  • attachToRelayProfiler
  • swizzleJSON
  • measureMethods
  • measure

參考

Methods

installReactHook()

static installReactHook(useFiber)

setEnabled()

static setEnabled(enabled)

isEnabled()

static isEnabled()

beginEvent()

static beginEvent(profileName?, args?)
beginEvent / endEvent用於在同一個調用堆棧幀中啟動和結束配置文件。

endEvent()

static endEvent()

beginAsyncEvent()

static beginAsyncEvent(profileName?)
beginAsyncEvent / endAsyncEvent用於啟動和結束一個配置文件,其中結束可以發生在另一個線程上或當前堆棧幀之外,例如等待返回的cookie變量應該用作endAsyncEvent調用的輸入以結束配置文件。

endAsyncEvent()

static endAsyncEvent(profileName?, cookie?)

counterEvent()

static counterEvent(profileName?, value?)
將值註冊到systrace時間軸上的profileName。

attachToRelayProfiler()

static attachToRelayProfiler(relayProfiler)
中繼配置文件使用等待調用,因此很可能在當前堆棧幀之外發生,因此使用異步變體分析。

swizzleJSON()

static swizzleJSON()
由於性能開銷,默認情況下不會調用此方法,但它對於查找在JSON中花費太多時間的跟踪非常有用。

measureMethods()

static measureMethods(object, objectName, methodNames)
測量類的多個方法。例如,以下內容將返回JSON類的parse和stringify方法:Systrace.measureMethods(JSON,'JSON',['parse','stringify']);

@param object @param objectName @param methodNames從方法名稱到方法顯示名稱的映射。

measure()

static measure(objName, fnName, func)
返回輸入函數的配置文件版本。例如,您可以:JSON.parse = Systrace.measure('JSON','parse',JSON.parse);

@param objName @param fnName @param {function} func @return {function}替換函數


Share
Tweet
Pin
Share
No 意見
Newer Posts
Older Posts

About me

還在努力掙扎中的工程師

Follow Us

  • Google+
  • facebook
  • twitter

Categories

Accordion Animation AutoComplete CSS Calendar Canvas Carousel Charts Color DatePicker Effects Facebook API Forms Gallery HTML5 Menu Mootools Prototype React images jQuery javascripts lightbox 前端技術 統計圖表 網頁設計

Recent Posts

  • Security Eye 4.4.1 免費網路攝影機監視系統,多路監視器解決方案
  • PotPlayer 1.7.16291 繁體中文免安裝,新增串流媒體播放的 MP4 格式
  • 微軟推出 Font Maker 製作自己專屬 「手寫字型」
  • jQuery Gantt Chart 在網頁上繪製甘特圖的 jQuery 套件
  • Kalendae 一個不依賴任何框架的日期選擇器

Sponsor


勸敗攻略
勸敗分部

Facebook

Blog Archive

  • 6月 2026 (27)
  • 5月 2026 (60)
  • 4月 2026 (58)
  • 3月 2026 (62)
  • 2月 2026 (55)
  • 1月 2026 (62)
  • 12月 2025 (62)
  • 11月 2025 (58)
  • 10月 2025 (62)
  • 9月 2025 (60)
  • 8月 2025 (62)
  • 7月 2025 (62)
  • 6月 2025 (58)
  • 4月 2025 (48)
  • 3月 2025 (60)
  • 2月 2025 (51)
  • 1月 2025 (56)
  • 12月 2024 (61)
  • 11月 2024 (60)
  • 10月 2024 (54)
  • 9月 2024 (55)
  • 8月 2024 (42)
  • 7月 2024 (40)
  • 6月 2024 (19)
  • 9月 2023 (3)
  • 4月 2023 (2)
  • 2月 2023 (1)
  • 12月 2021 (1)
  • 1月 2019 (11)
  • 12月 2018 (31)
  • 11月 2018 (31)
  • 10月 2018 (31)
  • 9月 2018 (30)
  • 8月 2018 (31)
  • 7月 2018 (3)
  • 2月 2018 (1)
  • 4月 2015 (1)
  • 9月 2014 (1)
  • 2月 2014 (1)
  • 7月 2013 (1)
  • 2月 2013 (2)
  • 1月 2013 (1)
  • 12月 2012 (12)
  • 11月 2012 (81)
  • 10月 2012 (64)

Created with by ThemeXpose | Distributed by Blogger Templates