( tabBarFrame: JSONObject, count: number, index: number, )
| 1761 | } |
| 1762 | |
| 1763 | function tabItemFallbackFrame( |
| 1764 | tabBarFrame: JSONObject, |
| 1765 | count: number, |
| 1766 | index: number, |
| 1767 | ): JSONObject { |
| 1768 | const width = count > 0 ? rectNumber(tabBarFrame, "width") / count : 0; |
| 1769 | return { |
| 1770 | x: rectNumber(tabBarFrame, "x") + width * index, |
| 1771 | y: rectNumber(tabBarFrame, "y"), |
| 1772 | width, |
| 1773 | height: rectNumber(tabBarFrame, "height"), |
| 1774 | }; |
| 1775 | } |
| 1776 | |
| 1777 | function isNativeScriptVisible(view: any): boolean { |
| 1778 | return read(view, "visibility") !== "collapse"; |
no test coverage detected