PageSourceSearch

https://reactnative.cn/assets/js/c0492f75.3003270c.js

js reactnative.cn collected 2026-10-04 00:24:26 UTC 5,552 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreact_native_website=self.webpackChunkreact_native_website||[]).push([["10132"],{91260(e,t,n){n.r(t),n.d(t,{metadata:()=>d,default:()=>x,frontMatter:()=>i,contentTitle:()=>c,toc:()=>h,assets:()=>s});var d=JSON.parse('{"id":"rect","title":"\u77E9\u5F62\u533A\u57DF\u5BF9\u8C61","description":"Rect \u63A5\u53D7\u6570\u503C\u50CF\u7D20\u503C\u6765\u63CF\u8FF0\u5982\u4F55\u6269\u5C55\u77E9\u5F62\u533A\u57DF\u3002\u8FD9\u4E9B\u503C\u4F1A\u88AB\u6DFB\u52A0\u5230\u539F\u59CB\u533A\u57DF\u7684\u5927\u5C0F\u4E0A\u4EE5\u6269\u5C55\u5B83\u3002","source":"@site/versioned_docs/version-0.86/rect.md","sourceDirName":".","slug":"/rect","permalink":"/docs/0.86/rect","draft":false,"unlisted":false,"editUrl":"https://github.com/reactnativecn/react-native-website/blob/production/cnwebsite/../cndocs/rect.md","tags":[],"version":"0.86","frontMatter":{"id":"rect","title":"\u77E9\u5F62\u533A\u57DF\u5BF9\u8C61"},"sidebar":"\u7EC4\u4EF6","previous":{"title":"React \u8282\u70B9\u5BF9\u8C61","permalink":"/docs/0.86/react-node"},"next":{"title":"TargetEvent \u5BF9\u8C61\u7C7B\u578B","permalink":"/docs/0.86/targetevent"}}'),r=n(62540),l=n(43023);let i={id:"rect",title:"\u77E9\u5F62\u533A\u57DF\u5BF9\u8C61"},c,s={},h=[{value:"\u793A\u4F8B",id:"\u793A\u4F8B",level:2},{value:"\u5C5E\u6027\u4E0E\u503C",id:"\u5C5E\u6027\u4E0E\u503C",level:2},{value:"<code>bottom</code>
1",id:"bottom",level:3},{value:"<code>left</code>",id:"left",level:3},{value:"<code>right</code>",id:"right",level:3},{value:"<code>top</code>",id:"top",level:3},{value:"\u88AB\u4E0B\u5217\u7EC4\u4EF6\u5F15\u7528",id:"\u88AB\u4E0B\u5217\u7EC4\u4EF6\u5F15\u7528",level:2}];function o(e){let t={a:"a",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,l.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.code,{children:"Rect"})," \u63A5\u53D7\u6570\u503C\u50CF\u7D20\u503C\u6765\u63CF\u8FF0\u5982\u4F55\u6269\u5C55\u77E9\u5F62\u533A\u57DF\u3002\u8FD9\u4E9B\u503C\u4F1A\u88AB\u6DFB\u52A0\u5230\u539F\u59CB\u533A\u57DF\u7684\u5927\u5C0F\u4E0A\u4EE5\u6269\u5C55\u5B83\u3002"]}),"\n",(0,r.jsx)(t.h2,{id:"\u793A\u4F8B",children:"\u793A\u4F8B"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",metastring:'title="JavaScript"',children:"{\n    bottom: 20,\n    left: null,\n    right: undefined,\n    top: 50\n}\n"})}),"\n",(0,r.jsx)(t.h2,{id:"\u5C5E\u6027\u4E0E\u503C",children:"\u5C5E\u6027\u4E0E\u503C"}),"\n",(0,r.jsx)(t.h3,{id:"bottom",children:(0,r.jsx)(t.code,{children:"bottom"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Required"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsxs)(t.td,{children:["number, ",(0,r.jsx)(t.code,{children:"null"}),", ",(0,r.jsx)(t.code,{children:"undefined"})]}),(0,r.jsx)(t.td,{children:"No"})]})})]}),"\n",(0,r.jsx)(t.h3,{id:"left",children:(0,r.jsx)(t.code,{children:"left"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Required"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsxs)(t.td,{children:["number, ",(0,r.jsx)(t.code,{children:"null"}),", ",(0,r.jsx)(t.code,{children:"undefined"})]}),(0,r.jsx)(t.td,{children:"No"})]})})]}),"\n",(0,r.jsx)(t.h3,{id:"right",children:(0,r.jsx)(t.code,{children:"right"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Required"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsxs)(t.td,{children:["number, ",(0,r.jsx)(t.code,{children:"null"}),", ",(0,r.jsx)(t.code,{children:"undefined"})]}),(0,r.jsx)(t.td,{children:"No"})]})})]}),"\n",(0,r.jsx)(t.h3,{id:"top",children:(0,r.jsx)(t.code,{children:"top"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Required"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsxs)(t.td,{children:["number, ",(0,r.jsx)(t.code,{children:"null"}),", ",(0,r.jsx)(t.code,{children:"undefined"})]}),(0,r.jsx)(t.td,{children:"No"})]})})]}),"\n",(0,r.jsx)(t.h2,{id:"\u88AB\u4E0B\u5217\u7EC4\u4EF6\u5F15\u7528",children:"\u88AB\u4E0B\u5217\u7EC4\u4EF6\u5F15\u7528"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsx)(t.li,{children:(0,r.jsx)(t.a,{href:"image",children:(0,r.jsx)(t.code,{children:"Image"})})}),"\n",(0,r.jsx)(t.li,{children:(0,r.jsx)(t.a,{href:"pressable",children:(0,r.jsx)(t.code,{children:"Pressable"})})}),"\n",(0,r.jsx)(t.li,{children:(0,r.jsx)(t.a,{href:"text",children:(0,r.jsx)(t.code,{children:"Text"})})}),"\n",(0,r.jsx)(t.li,{children:(0,r.jsx)(t.a,{href:"touchablewithoutfeedback",children:(0,r.jsx)(t.code,{children:"TouchableWithoutFeedback"})})}),"\n"]})]})}function x(e={}){let{wrapper:t}={...(0,l.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},43023(e,t,n){n.d(t,{R:()=>i,x:()=>c});var d=n(63696);let r={},l=d.createContext(r);function i(e){let t=d.useContext(l);return d.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),d.createElement(l.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.