Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/expo/packages/html-elements/build/elements/
H A DTable.js7 export const Table = forwardRef((props, ref) => {
8 return React.createElement(View, { ...props, ref: ref });
11 return React.createElement(View, { ...props, ref: ref });
14 return React.createElement(View, { ...props, ref: ref });
17 return React.createElement(View, { ...props, ref: ref });
19 export const TH = forwardRef((props, ref) => {
20 return React.createElement(TableText, { ...props, style: [styles.th, props.style], ref: ref });
22 export const TR = forwardRef((props, ref) => {
23 return React.createElement(View, { ...props, style: [styles.tr, props.style], ref: ref });
26 return React.createElement(TableText, { ...props, style: [styles.td, props.style], ref: ref });
[all …]
H A D_Text.web.js4 export const P = forwardRef(({ style, ...props }, ref) => {
7 export const B = forwardRef(({ style, ...props }, ref) => {
10 export const S = forwardRef(({ style, ...props }, ref) => {
13 export const Del = forwardRef(({ style, ...props }, ref) => {
19 export const I = forwardRef(({ style, ...props }, ref) => {
22 export const Q = forwardRef(({ style, ...props }, ref) => {
28 export const EM = forwardRef(({ style, ...props }, ref) => {
31 export const BR = forwardRef((props, ref) => {
32 return createElement('br', { ...props, ref });
40 export const Code = forwardRef((props, ref) => {
[all …]
H A DText.js7 return React.createElement(Text, { ...props, style: [styles.p, style], ref: ref });
10 return React.createElement(Text, { ...props, style: [styles.b, style], ref: ref });
13 return React.createElement(Text, { ...props, style: [styles.s, style], ref: ref });
16 return React.createElement(Text, { ...props, style: [styles.i, style], ref: ref });
19 return (React.createElement(Text, { ...props, style: [styles.q, style], ref: ref },
25 return React.createElement(View, { ...props, style: [styles.blockQuote, style], ref: ref });
28 return React.createElement(Text, { ...props, style: [styles.br, style], ref: ref });
31 return React.createElement(Text, { ...props, style: [styles.mark, style], ref: ref });
34 return React.createElement(Text, { ...props, style: [styles.code, style], ref: ref });
43 return React.createElement(View, { ...props, style: [styles.pre, props.style], ref: ref });
[all …]
H A DLists.js6 return forwardRef((props, ref) => {
7 return React.createElement(View, { ...nativeProps, ...props, ref: ref });
19 export const LI = forwardRef((props, ref) => {
25 … return React.createElement(Text, { ...props, accessibilityRole: accessibilityRole, ref: ref });
31 return React.createElement(View, { ...props, accessibilityRole: accessibilityRole, ref: ref });
H A DTable.js.map1ref) => {\n return <View {...props} ref={ref} />;\n}) as ComponentType<ViewProps>;\n\nexport cons…
H A DText.js.map1ref) => {\n return <Text {...props} style={[styles.p, style]} ref={ref} />;\n}) as ComponentType<…
H A DRules.js4 export const HR = forwardRef((props, ref) => {
5 return React.createElement(View, { ...props, style: [styles.hr, props.style], ref: ref });
H A D_Text.web.js.map1ref) => {\n return createElement('p', { ...props, style: [styles.reset, style], ref });\n}) as Co…
H A DAnchor.js4 export const A = forwardRef(({ href, target, download, rel, ...props }, ref) => {
23 …eturn React.createElement(Text, { accessibilityRole: "link", ...props, ...nativeProps, ref: ref });
/expo/packages/html-elements/src/elements/
H A DTable.tsx9 export const Table = forwardRef((props: ViewProps, ref) => {
10 return <View {...props} ref={ref} />;
13 export const THead = forwardRef((props: ViewProps, ref) => {
14 return <View {...props} ref={ref} />;
18 return <View {...props} ref={ref} />;
22 return <View {...props} ref={ref} />;
26 return <TableText {...props} style={[styles.th, props.style]} ref={ref} />;
29 export const TR = forwardRef((props: ViewProps, ref) => {
30 return <View {...props} style={[styles.tr, props.style]} ref={ref} />;
34 return <TableText {...props} style={[styles.td, props.style]} ref={ref} />;
[all …]
H A DText.tsx10 return <Text {...props} style={[styles.p, style]} ref={ref} />;
14 return <Text {...props} style={[styles.b, style]} ref={ref} />;
18 return <Text {...props} style={[styles.s, style]} ref={ref} />;
22 return <Text {...props} style={[styles.i, style]} ref={ref} />;
27 <Text {...props} style={[styles.q, style]} ref={ref}>
34 return <View {...props} style={[styles.blockQuote, style]} ref={ref} />;
38 return <Text {...props} style={[styles.br, style]} ref={ref} />;
42 return <Text {...props} style={[styles.mark, style]} ref={ref} />;
46 return <Text {...props} style={[styles.code, style]} ref={ref} />;
59 return <View {...props} style={[styles.pre, props.style]} ref={ref} />;
[all …]
H A D_Text.web.tsx8 export const P = forwardRef(({ style, ...props }: TextProps, ref) => {
12 export const B = forwardRef(({ style, ...props }: TextProps, ref) => {
16 export const S = forwardRef(({ style, ...props }: TextProps, ref) => {
20 export const Del = forwardRef(({ style, ...props }: TextProps, ref) => {
28 export const I = forwardRef(({ style, ...props }: TextProps, ref) => {
32 export const Q = forwardRef(({ style, ...props }: QuoteProps, ref) => {
40 export const EM = forwardRef(({ style, ...props }: TextProps, ref) => {
44 export const BR = forwardRef((props: TextProps, ref) => {
45 return createElement('br', { ...props, ref });
56 export const Code = forwardRef((props: TextProps, ref) => {
[all …]
H A DLists.tsx8 return forwardRef((props: ViewProps, ref) => {
9 return <View {...nativeProps} {...props} ref={ref} />;
28 export const LI = forwardRef((props: PropsWithChildren<LIProps>, ref: any) => {
34 return <Text {...props} accessibilityRole={accessibilityRole} ref={ref} />;
40 return <View {...props} accessibilityRole={accessibilityRole} ref={ref} />;
H A DRules.tsx6 export const HR = forwardRef((props: ViewProps, ref) => {
7 return <View {...props} style={[styles.hr, props.style]} ref={ref} />;
/expo/docs/ui/components/Layout/
H A DuseAutoScrollTo.ts12 const ref = useRef<T>(null); constant
16 if (!selector || !ref.current) return;
17 const target = ref.current.querySelector<HTMLElement>(selector);
19 const bounds = ref.current.getBoundingClientRect();
20 const position = ref.current.scrollTop;
26 ref.current.scrollTo({ top: Math.max(0, targetPosition - upperThreshold) });
28 ref.current.scrollTo({ top: targetPosition - lowerThreshold });
32 [ref.current, selector]
35 return { ref };
H A DusePersistScroll.ts11 const ref = useRef<T>(null); constant
19 if (ref.current && scrollPositions[id] > 0) {
20 ref.current.scrollTop = scrollPositions[id];
23 [ref.current]
26 return { ref, onScroll };
/expo/apps/test-suite/components/
H A DSuites.js9 const ref = React.useRef(null);
17 if (ref.current && ref.current.props.data.length > 0)
18 ref.current.scrollToEnd({ animated: false });
20 [ref]
24 if (done && ref.current) {
27 }, [ref, done]);
35 ref={ref} field
/expo/packages/expo-gl/build/
H A DCanvas.js14 function setRef(refProp, ref) { argument
18 refProp(ref);
22 refProp.current = ref;
25 const Canvas = React.forwardRef((props, ref) => createElement('canvas', { ...props, ref }));
28 const ref = React.useRef(null); constant
46 else if (!ref.current || !Platform.isDOMAvailable) {
49 const element = getElement(ref.current);
63 if (ref.current != null) {
66 }, [ref]);
77 …return (React.createElement(View, { ...props, pointerEvents: "box-none", ref: ref, onLayout: onLay…
[all …]
/expo/packages/expo-dev-menu/mocks/react-native-gesture-handler/src/
H A Dindex.tsx8 // TODO(TS) fix ref type
9 const { ref }: any = child;
10 if (ref !== null) {
11 if (typeof ref === 'function') {
12 ref(node);
14 ref.current = node;
23 ref: this.refHandler,
/expo/packages/expo-gl/src/
H A DCanvas.tsx15 function setRef<T>(refProp: React.Ref<T>, ref: T | null) {
19 refProp(ref);
22 refProp.current = ref;
27 (props: React.ComponentProps<typeof View>, ref: React.Ref<HTMLCanvasElement>) =>
28 createElement('canvas', { ...props, ref })
38 const ref = React.useRef<View>(null);
59 } else if (!ref.current || !Platform.isDOMAvailable) {
62 const element = getElement(ref.current);
84 if (ref.current != null) {
87 }, [ref]);
[all …]
/expo/docs/mdx-plugins/
H A Dremark-link-rewrite.js46 const ref = new URL(node.url, FAKE_DOMAIN);
48 if (ref.origin === FAKE_DOMAIN) {
51 ref.hash && ref.pathname === '/'
52 ? `${path.basename(file.history[0])}${ref.hash}`
/expo/apps/test-suite/tests/
H A DCamera.js21 const refSetter = (ref) => { argument
22 instance = ref;
74 await mountAndWaitFor(<Camera style={style} ref={refSetter} />);
86 await mountAndWaitFor(<Camera ref={refSetter} style={style} />);
93 await mountAndWaitFor(<Camera ref={refSetter} style={style} />);
101 await mountAndWaitFor(<Camera ref={refSetter} style={style} />);
112 await mountAndWaitFor(<Camera ref={refSetter} style={style} />);
180 ref={refSetter}
194 ref={refSetter}
347 ref={refSetter}
[all …]
/expo/packages/expo-router/build/
H A DuseScreens.js68 default: react_1.default.forwardRef((props, ref) => {
71 ref,
107 …getLoadable = (props, ref) => (react_1.default.createElement(react_1.default.Suspense, { fallback:… argument
109 ref,
117 const SyncComponent = react_1.default.forwardRef((props, ref) => {
118 return react_1.default.createElement(Component, { ...props, ref: ref });
120 getLoadable = (props, ref) => (react_1.default.createElement(SyncComponent, { ...props,
121 ref,
131 ...props }, ref) => {
132 const loadable = getLoadable(props, ref);
/expo/packages/expo-av/build/
H A DExponentVideo.web.js6 const Video = React.forwardRef((props, ref) => createElement('video', { ...props, ref }));
77 onRef = (ref) => {
79 if (ref) {
80 this._video = ref;
95 …return (React.createElement(Video, { ref: this.onRef, onLoadStart: this.onLoadStart, onLoadedData:… property
/expo/tools/src/
H A DGit.ts65 ref?: string;
132 async checkoutAsync(ref: string) {
133 await this.runAsync(['checkout', ref]);
191 if (options.ref) {
192 args.push(options.ref);
388 async mergeBaseAsync(ref: string, base: string = 'HEAD'): Promise<string> {
389 const { stdout } = await this.runAsync(['merge-base', base, ref]);
413 async listTreeAsync(ref: string, paths: string[]): Promise<GitListTree[]> {
435 async readFileAsync(ref: string, path: string): Promise<string> {
448 ref: string = 'main'
[all …]

12345678910>>...21