type
stringclasses
3 values
instruction
stringlengths
31
162
input
stringlengths
0
1.23k
output
stringlengths
109
96.9k
repo
stringclasses
167 values
path
stringlengths
5
131
extension
stringclasses
4 values
lines
int64
0
3.36k
path_completion
Create a React Native file at: Example/Collapsable.js
Repository: osdnk_react-native-reanimated-bottom-sheet
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import BottomSheet from 'reanimated-bottom-sheet' import Animated from 'react-native-reanimated' const { block, set, greaterThan, lessThan, Value, cond, sub } = Animated const Lorem = () => ( <View style={{ backgroundColor: 'green' }}> ...
osdnk_react-native-reanimated-bottom-sheet
Example/Collapsable.js
.js
111
path_completion
Create a React Native file at: src/components/link/index.tsx
Repository: czy0729_Bangumi
/* * @Author: czy0729 * @Date: 2025-08-09 16:05:15 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-25 12:25:48 */ import React, { useCallback, useMemo } from 'react' import { appNavigate as navigate, open } from '@utils' import { logger } from '@utils/dev' import { t } from '@utils/fetch' import { useN...
czy0729_Bangumi
src/components/link/index.tsx
.tsx
84
path_completion
Create a React Native file at: apps/native-component-list/src/utilities/useAppState.ts
Repository: expo_expo
import { useEffect, useState } from 'react'; import { AppState, AppStateStatus } from 'react-native'; export default function useAppState( initialState: AppStateStatus | null = AppState.currentState ): AppStateStatus | null { const [state, setState] = useState<AppStateStatus | null>(initialState); useEffect(() ...
expo_expo
apps/native-component-list/src/utilities/useAppState.ts
.ts
16
code_completion
Complete this React Native code
import React, { PropsWithChildren } from 'react'; import { Platform, TouchableHighlight, TouchableNativeFeedback,
import React, { PropsWithChildren } from 'react'; import { Platform, TouchableHighlight, TouchableNativeFeedback, View } from 'react-native'; import { useSharedProps } from './context/SharedPropsProvider'; import { GenericPressableProps } from './shared-types'; export default function GenericPressable({ styl...
meliorence_react-native-render-html
packages/render-html/src/GenericPressable.tsx
.tsx
0
code_completion
Complete this React Native code
/* * @Author: czy0729 * @Date: 2020-01-05 21:50:37 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-22 01:24:03
/* * @Author: czy0729 * @Date: 2020-01-05 21:50:37 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-22 01:24:03 */ import React from 'react' import { Component, Page } from '@components' import { StoreContext } from '@stores' import { useObserver } from '@utils/hooks' import List from './component/list'...
czy0729_Bangumi
src/screens/discovery/catalog-detail/index.tsx
.tsx
0
path_completion
Create a React Native file at: app/products/calls/screens/call_screen/call_screen.tsx
Repository: mattermost_mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. /* eslint max-lines: off */ import RNUtils from '@mattermost/rnutils'; import React, {useCallback, useEffect, useMemo, useState} from 'react'; import {useIntl} from 'react-intl'; import { Keyboard, t...
mattermost_mattermost-mobile
app/products/calls/screens/call_screen/call_screen.tsx
.tsx
1,009
code_completion
Complete this React Native code
import { ConfigPlugin, withPlugins } from '@expo/config-plugins'; import Debug from 'debug'; import { getIosSplashConfig, IOSSplashConfig } from './getIosSplashConfig'; import { withIosSplashAssets } from './withIosSplashAssets';
import { ConfigPlugin, withPlugins } from '@expo/config-plugins'; import Debug from 'debug'; import { getIosSplashConfig, IOSSplashConfig } from './getIosSplashConfig'; import { withIosSplashAssets } from './withIosSplashAssets'; import { withIosSplashColors } from './withIosSplashColors'; import { withIosSplashInfoPl...
expo_expo
packages/@expo/prebuild-config/src/plugins/unversioned/expo-splash-screen/withIosSplashScreen.ts
.ts
0
file_completion
Create a React Native component called skeleton.styles
import { StyleSheet } from 'react-native'; import { tv } from 'tailwind-variants'; import { combineStyles } from '../../helpers/internal/utils'; /** * Main skeleton component styles * * @note ANIMATED PROPERTIES (cannot be set via className): * The following property is animated and cannot be overridden using Tail...
heroui-inc_heroui-native
src/components/skeleton/skeleton.styles.ts
.ts
50
path_completion
Create a React Native file at: app/components/freeze_screen/index.tsx
Repository: mattermost_mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Freeze} from 'react-freeze'; import {StyleSheet, View} from 'react-native'; import {useIsTablet} from '@hooks/device'; import useFreeze from '@hooks/freeze'; type FreezeP...
mattermost_mattermost-mobile
app/components/freeze_screen/index.tsx
.tsx
80
path_completion
Create a React Native file at: src/components/theme/backdrop/backdrop.component.tsx
Repository: akveo_react-native-ui-kitten
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import React from 'react'; import { StyleProp, StyleSheet, TouchableOpacity, View, ViewProps, ViewStyle, } from 'react-native'; type ChildElement = R...
akveo_react-native-ui-kitten
src/components/theme/backdrop/backdrop.component.tsx
.tsx
68
code_completion
Complete this React Native code
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import * as React from 'react'; import ReactNavigationDetailScreen from './components/ReactNavigationDetailScreen';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import * as React from 'react'; import ReactNavigationDetailScreen from './components/ReactNavigationDetailScreen'; im...
AppAndFlow_react-native-safe-area-context
example/src/ReactNavigationExample.tsx
.tsx
0
file_completion
Generate React Native code for a styles: shadows
'use strict'; import type { TextStyle, ViewStyle } from 'react-native'; import { logger } from '../../../logger'; import { opacifyColor } from '../../utils'; import { processColor } from '../processors'; import { createWebRuleBuilder } from '../ruleBuilder'; import type { ValueProcessor } from '../types'; type Shadow...
software-mansion_react-native-reanimated
packages/react-native-reanimated/src/common/web/style/builders/shadows.ts
.ts
66
file_completion
Write a component for React Native: JSTimers
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
ptmt_react-native-macos
Libraries/Core/Timers/JSTimers.js
.js
502
file_completion
Implement a React Native screen named index
/* * @Author: czy0729 * @Date: 2019-09-04 21:58:42 * @Last Modified by: czy0729 * @Last Modified time: 2026-02-07 07:58:03 */ import React from 'react' import { View } from 'react-native' import { Avatar, Flex, Text, Touchable } from '@components' import { IconBack, IconTouchable } from '@_' import { _, systemStor...
czy0729_Bangumi
src/screens/tinygrail/index/component/auth/index.tsx
.tsx
82
code_completion
Complete this React Native code
import React from 'react'; import { NativeModules } from 'react-native'; import { cloneReactChildrenWithProps } from '../utils'; import { BaseProps } from '../types/BaseProps';
import React from 'react'; import { NativeModules } from 'react-native'; import { cloneReactChildrenWithProps } from '../utils'; import { BaseProps } from '../types/BaseProps'; import RNMBXRasterSourceNativeComponent from '../specs/RNMBXRasterSourceNativeComponent'; import AbstractSource from './AbstractSource'; con...
rnmapbox_maps
src/components/RasterSource.tsx
.tsx
0
code_completion
Complete this React Native code
import { Animated, Easing, StyleSheet, View,
import { Animated, Easing, StyleSheet, View, TouchableOpacityProps as RNTouchableOpacityProps, } from 'react-native'; import GenericTouchable, { TOUCHABLE_STATE } from './GenericTouchable'; import type { GenericTouchableProps } from './GenericTouchableProps'; import * as React from 'react'; import { Component...
software-mansion_react-native-gesture-handler
packages/react-native-gesture-handler/src/components/touchables/TouchableOpacity.tsx
.tsx
0
path_completion
Create a React Native file at: screen/wallets/SelectWallet.tsx
Repository: BlueWallet_BlueWallet
import React, { useEffect, useState, useRef, useCallback } from 'react'; import { useNavigationState, useRoute, RouteProp } from '@react-navigation/native'; import { ActivityIndicator, StyleSheet, View } from 'react-native'; import triggerHapticFeedback, { HapticFeedbackTypes } from '../../blue_modules/hapticFeedback';...
BlueWallet_BlueWallet
screen/wallets/SelectWallet.tsx
.tsx
177
code_completion
Complete this React Native code
import { ActionType, OwnerType } from "@artsy/cohesion" import { SavedPriceRange } from "@artsy/cohesion/dist/Schema/Events/SavedPriceRange" import { Spacer, Text } from "@artsy/palette-mobile" import { NavigationProp, useNavigation } from "@react-navigation/native" import { StackScreenProps } from "@react-navigation/s...
import { ActionType, OwnerType } from "@artsy/cohesion" import { SavedPriceRange } from "@artsy/cohesion/dist/Schema/Events/SavedPriceRange" import { Spacer, Text } from "@artsy/palette-mobile" import { NavigationProp, useNavigation } from "@react-navigation/native" import { StackScreenProps } from "@react-navigation/s...
artsy_eigen
src/app/Scenes/Onboarding/Screens/OnboardingQuiz/OnboardingPriceRange.tsx
.tsx
0
path_completion
Create a React Native file at: packages/react-native-gesture-handler/src/v3/components/Pressable.tsx
Repository: software-mansion_react-native-gesture-handler
import React, { useCallback, useEffect, useMemo, useRef, useState, } from 'react'; import { PressableDimensions, PressableEvent, PressableProps, } from '../../components/Pressable/PressableProps'; import { Insets, LayoutChangeEvent, Platform, StyleProp, ViewStyle, } from 'react-native'; import...
software-mansion_react-native-gesture-handler
packages/react-native-gesture-handler/src/v3/components/Pressable.tsx
.tsx
389
code_completion
Complete this React Native code
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import type {CodegenTypes, TurboModule} from 'react-native'; import {TurboModuleRegistry} f...
facebook_react-native
packages/rn-tester/NativeModuleExample/NativeScreenshotManager.js
.js
0
file_completion
Implement a React Native component named agent_selector_panel
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {type Agent} from '@agents/client/rest'; import React, {useCallback, useMemo} from 'react'; import {FlatList, type ListRenderItemInfo, TouchableOpacity, View} from 'react-native'; import {buildAbsolu...
mattermost_mattermost-mobile
app/products/agents/components/channel_summary_sheet/agent_selector_panel.tsx
.tsx
144
file_completion
Generate React Native code for a component: IMGElementContentLoading
import React, { PropsWithChildren, ReactElement } from 'react'; import { View } from 'react-native'; import { IMGElementStateLoading } from './img-types'; /** * Default loading view for the {@link IMGElement} component. */ export default function IMGElementContentLoading({ dimensions, children }: PropsWithChildr...
meliorence_react-native-render-html
packages/render-html/src/elements/IMGElementContentLoading.tsx
.tsx
18
code_completion
Complete this React Native code
import { ExpoConfig, getConfig, Platform } from '@expo/config'; import { getPlatformBundlers, PlatformBundlers } from '../start/server/platformBundlers'; import { CommandError } from '../utils/errors';
import { ExpoConfig, getConfig, Platform } from '@expo/config'; import { getPlatformBundlers, PlatformBundlers } from '../start/server/platformBundlers'; import { CommandError } from '../utils/errors'; export type Options = { outputDir: string; platforms: Platform[]; maxWorkers?: number; dev: boolean; clear...
expo_expo
packages/@expo/cli/src/export/resolveOptions.ts
.ts
0
path_completion
Create a React Native file at: src/layouts/ecommerce/product-details-1/index.tsx
Repository: akveo_kittenTricks
import React from 'react'; import { Image, Platform, View } from 'react-native'; import { Button, Input, Layout, StyleService, Text, useStyleSheet } from '@ui-kitten/components'; import { KeyboardAvoidingView } from './extra/keyboard-avoiding-view.component'; import { RateBar } from './extra/rate-bar.component'; import...
akveo_kittenTricks
src/layouts/ecommerce/product-details-1/index.tsx
.tsx
170
file_completion
Create a React Native component called tooltip
import { TooltipPreview } from '@/registry/examples/tooltip'; import * as React from 'react'; import { View } from 'react-native'; export default function TooltipScreen() { return ( <View className="flex-1 items-center justify-center p-6"> <TooltipPreview /> </View> ); }
founded-labs_react-native-reusables
apps/showcase/app/components/tooltip.tsx
.tsx
12
path_completion
Create a React Native file at: src/layouts/social/profile-7/extra/profile-social.component.tsx
Repository: akveo_kittenTricks
import React from 'react'; import { StyleSheet, View, ViewProps } from 'react-native'; import { Text } from '@ui-kitten/components'; export interface ProfileSocialProps extends ViewProps { hint: string; value: string; } export const ProfileSocial = (props: ProfileSocialProps): React.ReactElement => { const { s...
akveo_kittenTricks
src/layouts/social/profile-7/extra/profile-social.component.tsx
.tsx
37
file_completion
Generate React Native code for a utility: schema
// copied from https://github.com/expo/expo-cli/blob/d00319aae4fdcacf1a335af5a8428c45b62fc4d7/packages/xdl/src/project/Doctor.ts // minor naming changes only import { ExpoConfig } from '@expo/config'; import Schemer, { SchemerError, ValidationError } from '@expo/schemer'; function formatValidationError(validationErro...
expo_expo
packages/expo-doctor/src/utils/schema.ts
.ts
54
code_completion
Complete this React Native code
import { OwnerType } from "@artsy/cohesion" import { InfoIcon } from "@artsy/icons/native" import { Box, Button, Flex, Input, Screen, Text, useColor, useSpace } from "@artsy/palette-mobile" import { InquiryModal_artwork$key } from "__generated__/InquiryModal_artwork.graphql" import { MyProfileEditModal_me$key } from "_...
import { OwnerType } from "@artsy/cohesion" import { InfoIcon } from "@artsy/icons/native" import { Box, Button, Flex, Input, Screen, Text, useColor, useSpace } from "@artsy/palette-mobile" import { InquiryModal_artwork$key } from "__generated__/InquiryModal_artwork.graphql" import { MyProfileEditModal_me$key } from "_...
artsy_eigen
src/app/Scenes/Artwork/Components/CommercialButtons/InquiryModal.tsx
.tsx
0
path_completion
Create a React Native file at: code/packages/lucide-icons/backwards-compat/chevron-up-circle.tsx
Repository: tamagui_tamagui
import { memo } from 'react' import type { NamedExoticComponent } from 'react' import type { IconProps } from '@tamagui/helpers-icon' import { Svg, Circle as _Circle, Path } from 'react-native-svg' import { themed } from '@tamagui/helpers-icon' const Icon = (props) => { const { color = 'black', size = 24, ...otherPr...
tamagui_tamagui
code/packages/lucide-icons/backwards-compat/chevron-up-circle.tsx
.tsx
32
file_completion
Write a screen for React Native: index
/* * @Author: czy0729 * @Date: 2022-03-28 22:20:43 * @Last Modified by: czy0729 * @Last Modified time: 2025-12-26 21:59:19 */ import React from 'react' import { View } from 'react-native' import { ScrollView } from '@components' import { useStore } from '@stores' import { useObserver } from '@utils/hooks' import F...
czy0729_Bangumi
src/screens/user/smb/component/list/index.tsx
.tsx
39
path_completion
Create a React Native file at: app/components/user_item/user_item.tsx
Repository: mattermost_mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useCallback, useMemo, type ReactNode} from 'react'; import {useIntl} from 'react-intl'; import {StyleSheet, Text, TouchableOpacity, View, type StyleProp, type ViewStyle} from 'react-native'; ...
mattermost_mattermost-mobile
app/components/user_item/user_item.tsx
.tsx
226
path_completion
Create a React Native file at: code/packages/lucide-icons/backwards-compat/pi-square.tsx
Repository: tamagui_tamagui
import { memo } from 'react' import type { NamedExoticComponent } from 'react' import type { IconProps } from '@tamagui/helpers-icon' import { Svg, Path, Rect } from 'react-native-svg' import { themed } from '@tamagui/helpers-icon' const Icon = (props) => { const { color = 'black', size = 24, ...otherProps } = props...
tamagui_tamagui
code/packages/lucide-icons/backwards-compat/pi-square.tsx
.tsx
32
file_completion
Create a React Native component called ArtworkListEmptyState
import { Box, Button, Flex, Separator, Text } from "@artsy/palette-mobile" import { ArtworkListEmptyState_me$key } from "__generated__/ArtworkListEmptyState_me.graphql" import { ArtworkListHeader } from "app/Scenes/ArtworkList/ArtworkListHeader" import { ArtworkListTitle } from "app/Scenes/ArtworkList/ArtworkListTitle"...
artsy_eigen
src/app/Scenes/ArtworkList/ArtworkListEmptyState.tsx
.tsx
78
file_completion
Create a React Native screen called index.stories
/* * @Author: czy0729 * @Date: 2023-04-12 10:37:51 * @Last Modified by: czy0729 * @Last Modified time: 2024-08-06 03:29:29 */ import React from 'react' import { getStorybookArgs, Page, StorybookList, StorybookSPA, Text } from '@components' import { _ } from '@stores' const Component = () => ( <Page> <Text s...
czy0729_Bangumi
src/screens/web-view/bilibili-sync/index.stories.tsx
.tsx
31
path_completion
Create a React Native file at: packages/eslint-plugin-react-native/no-deep-imports.js
Repository: facebook_react-native
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @noflow */ 'use strict'; const {publicAPIMapping} = require('./utils.js'); module.exports = { meta: { type...
facebook_react-native
packages/eslint-plugin-react-native/no-deep-imports.js
.js
185
path_completion
Create a React Native file at: src/showcases/components/toggle/toggleStatus.component.tsx
Repository: akveo_react-native-ui-kitten
import React from 'react'; import { StyleSheet, View } from 'react-native'; import { Layout, Toggle, ToggleProps } from '@ui-kitten/components'; const useToggleState = (initialState = false): ToggleProps => { const [checked, setChecked] = React.useState(initialState); const onCheckedChange = (isChecked): void => ...
akveo_react-native-ui-kitten
src/showcases/components/toggle/toggleStatus.component.tsx
.tsx
108
path_completion
Create a React Native file at: packages/base/src/PricingCard/components/PricingButton.tsx
Repository: react-native-elements_react-native-elements
import React from 'react'; import { StyleSheet } from 'react-native'; import { ButtonProps, Button } from '../../Button'; import { defaultTheme, RneFunctionComponent } from '../../helpers'; import { IconProps, Icon } from '../../Icon'; export const PricingButton: RneFunctionComponent< ButtonProps & { onButtonPre...
react-native-elements_react-native-elements
packages/base/src/PricingCard/components/PricingButton.tsx
.tsx
52
path_completion
Create a React Native file at: packages/react-native-ui-lib/src/incubator/gradient/RectangleGradient.tsx
Repository: wix_react-native-ui-lib
import React from 'react'; import {LinearGradientPackage} from 'optionalDeps'; const LinearGradient = LinearGradientPackage?.default; import {RectangleGradientProps} from './types'; import View from '../../components/view'; import useAngleTransform from './useAngleTransform'; const RectangleGradient = (props: Rectangl...
wix_react-native-ui-lib
packages/react-native-ui-lib/src/incubator/gradient/RectangleGradient.tsx
.tsx
29
path_completion
Create a React Native file at: apps/common-app/src/new_api/complicated/camera/capture.tsx
Repository: software-mansion_react-native-gesture-handler
import { StyleSheet } from 'react-native'; import Animated, { SharedValue, useAnimatedProps, } from 'react-native-reanimated'; import Svg, { Circle } from 'react-native-svg'; const CAROUSEL_SIZE = 100; const RECORD_INDICATOR_STROKE = 10; const AnimatedCircle = Animated.createAnimatedComponent(Circle); interface C...
software-mansion_react-native-gesture-handler
apps/common-app/src/new_api/complicated/camera/capture.tsx
.tsx
74
file_completion
Generate React Native code for a utility: scheme
import { getConfig } from '@expo/config'; import { AndroidConfig, IOSConfig } from '@expo/config-plugins'; import { getInfoPlistPathFromPbxproj } from '@expo/config-plugins/build/ios/utils/getInfoPlistPath'; import plist from '@expo/plist'; import fs from 'fs'; import path from 'path'; import resolveFrom from 'resolve-...
expo_expo
packages/@expo/cli/src/utils/scheme.ts
.ts
112
code_completion
Complete this React Native code
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useCallback, useEffect, useMemo, useState} from 'react'; import {useIntl} from 'react-intl';
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useCallback, useEffect, useMemo, useState} from 'react'; import {useIntl} from 'react-intl'; import {Keyboard, StyleSheet, View} from 'react-native'; import {useTheme} from '@context/theme'; ...
mattermost_mattermost-mobile
app/products/playbooks/screens/edit_command/edit_command.tsx
.tsx
0
path_completion
Create a React Native file at: packages/expo-ui/src/jetpack-compose/Progress/index.tsx
Repository: expo_expo
import { requireNativeView } from 'expo'; import { ColorValue } from 'react-native'; import { ExpoModifier } from '../../types'; import { createViewModifierEventListener } from '../modifiers/utils'; export type ProgressElementColors = { /** * Track color. * * @platform android */ trackColor?: ColorVal...
expo_expo
packages/expo-ui/src/jetpack-compose/Progress/index.tsx
.tsx
103
file_completion
Implement a React Native component named code-line.component
// @flow /* eslint-disable no-nested-ternary */ import React, { Component } from 'react'; import { Text, Dimensions } from 'react-native'; import SyntaxHighlighter from 'react-native-syntax-highlighter'; import { getLanguage } from 'lowlight'; import { github as GithubStyle } from 'react-syntax-highlighter/dist/styles...
gitpoint_git-point
src/components/code-line.component.js
.js
140
file_completion
Build a multiselect-showcase.component component in React Native
import React, { useState, useCallback } from 'react'; import { StyleSheet } from 'react-native'; import { Select, SelectElement, SelectProps, SelectItem, SelectGroup, } from '@ui-kitten/components'; import { SelectOptionType } from './type'; interface SelectCustomProps extends SelectProps { data: SelectOpt...
akveo_kittenTricks
src/scenes/components/select/multiselect-showcase.component.tsx
.tsx
70
code_completion
Complete this React Native code
import React from 'react'; import { action, useAppDispatch } from '~/redux'; import { WebView } from 'react-native-webview'; const { setExtra } = action;
import React from 'react'; import { action, useAppDispatch } from '~/redux'; import { WebView } from 'react-native-webview'; const { setExtra } = action; const Webview = ({ navigation, route }: StackWebviewProps) => { const dispatch = useAppDispatch(); const { uri, source, userAgent, injectedJavascript } = route....
youniaogu_MangaReader
src/views/Webview.tsx
.tsx
0
file_completion
Implement a React Native component named RuntimeDecoration
import * as React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Gesture, GestureDetector } from 'react-native-gesture-handler'; import { COLORS } from './colors'; import Animated, { runOnJS, useAnimatedStyle, useSharedValue, } from 'react-native-reanimated'; import { useState } fr...
software-mansion_react-native-gesture-handler
apps/basic-example/src/RuntimeDecoration.tsx
.tsx
124
code_completion
Complete this React Native code
/* * @Author: czy0729 * @Date: 2023-11-08 00:47:23 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-20 09:54:19
/* * @Author: czy0729 * @Date: 2023-11-08 00:47:23 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-20 09:54:19 */ import React from 'react' import { ScrollView } from 'react-native' import { r } from '@utils/dev' import { useObserver } from '@utils/hooks' import { SCROLL_VIEW_RESET_PROPS } from '@const...
czy0729_Bangumi
src/screens/discovery/index/component/award/scroll-view-horizontal/index.tsx
.tsx
0
code_completion
Complete this React Native code
import * as React from 'react' import * as C from '@/constants' import {useIsFocused} from '@react-navigation/core' import type {NavigateAppendType} from '@/router-v2/route-params'
import * as React from 'react' import * as C from '@/constants' import {useIsFocused} from '@react-navigation/core' import type {NavigateAppendType} from '@/router-v2/route-params' export const useSafeNavigation = () => { const isFocused = useIsFocused() const navigateUp = C.useRouterState(s => s.dispatch.navigate...
keybase_client
shared/util/safe-navigation.tsx
.tsx
0
file_completion
Create a React Native screen called ScreenNavigationContainerNativeComponent
'use client'; import { codegenNativeComponent } from 'react-native'; import type { ViewProps } from 'react-native'; interface NativeProps extends ViewProps {} export default codegenNativeComponent<NativeProps>( 'RNSScreenNavigationContainer', {}, );
software-mansion_react-native-screens
src/fabric/ScreenNavigationContainerNativeComponent.ts
.ts
12
path_completion
Create a React Native file at: example/src/screens/integrations/map/Weather.tsx
Repository: gorhom_react-native-bottom-sheet
import React, { useCallback, useMemo, useState } from 'react'; import { LayoutChangeEvent, StyleSheet } from 'react-native'; import Animated, { Extrapolation, interpolate, useAnimatedStyle, } from 'react-native-reanimated'; import { useSafeAreaFrame } from 'react-native-safe-area-context'; import { ShowcaseLabel,...
gorhom_react-native-bottom-sheet
example/src/screens/integrations/map/Weather.tsx
.tsx
92
path_completion
Create a React Native file at: src/app/Scenes/HomeView/Components/RecommendedAuctionLotsRail.tsx
Repository: artsy_eigen
import { ActionType, ContextModule, OwnerType, ScreenOwnerType } from "@artsy/cohesion" import { ArtworkRail_artworks$data } from "__generated__/ArtworkRail_artworks.graphql" import { RecommendedAuctionLotsRail_artworkConnection$key } from "__generated__/RecommendedAuctionLotsRail_artworkConnection.graphql" import { Ar...
artsy_eigen
src/app/Scenes/HomeView/Components/RecommendedAuctionLotsRail.tsx
.tsx
127
file_completion
Write a component for React Native: text-field
import { forwardRef, useMemo } from 'react'; import { View } from 'react-native'; import { AnimationSettingsProvider, FormFieldProvider, } from '../../helpers/internal/contexts'; import type { ViewRef } from '../../helpers/internal/types'; import { createContext } from '../../helpers/internal/utils'; import { useTe...
heroui-inc_heroui-native
src/components/text-field/text-field.tsx
.tsx
83
file_completion
Write a component for React Native: DividerExample
import * as React from 'react'; import { FlatList } from 'react-native'; import { Divider, List } from 'react-native-paper'; import { useExampleTheme } from '../hooks/useExampleTheme'; import ScreenWrapper from '../ScreenWrapper'; const items = ['Apple', 'Banana', 'Coconut', 'Lemon', 'Mango', 'Peach']; const Divide...
callstack_react-native-paper
example/src/Examples/DividerExample.tsx
.tsx
31
file_completion
Build a ViewingRoomArtwork component in React Native
import { ShowIcon } from "@artsy/icons/native" import { Box, Button, Flex, Separator, Spacer, Text } from "@artsy/palette-mobile" import { ViewingRoomArtworkQuery } from "__generated__/ViewingRoomArtworkQuery.graphql" import { ViewingRoomArtwork_selectedArtwork$key } from "__generated__/ViewingRoomArtwork_selectedArtwo...
artsy_eigen
src/app/Scenes/ViewingRoom/ViewingRoomArtwork.tsx
.tsx
306
code_completion
Complete this React Native code
import React, { useMemo } from 'react'; import { StyleSheet, View, SafeAreaView,
import React, { useMemo } from 'react'; import { StyleSheet, View, SafeAreaView, Animated, Text, ScrollView, } from 'react-native'; import PagerView from 'react-native-pager-view'; import { LikeCount } from './component/LikeCount'; import { NavigationPanel } from './component/NavigationPanel'; import { us...
callstack_react-native-pager-view
example/src/NestedHorizontalScrollViewExample.tsx
.tsx
0
file_completion
Create a React Native component called ThemeShallowCase
import { Square, View, Text, Theme, YStack } from 'tamagui' import { TEST_IDS } from '../constants/test-ids' /** * Test case for themeShallow prop behavior * * The themeShallow prop should NOT affect DOM structure (span wrapping). * It only affects whether grandchildren inherit the theme change. * * This test v...
tamagui_tamagui
code/kitchen-sink/src/usecases/ThemeShallowCase.tsx
.tsx
84
file_completion
Generate React Native code for a component: index
/* * @Author: czy0729 * @Date: 2023-06-20 10:03:28 * @Last Modified by: czy0729 * @Last Modified time: 2026-02-10 07:24:48 */ import React from 'react' import { useObserver } from 'mobx-react' import { stl } from '@utils' import { Component } from '../../component' import { Flex } from '../../flex' import { Text }...
czy0729_Bangumi
src/components/cover/text-only/index.tsx
.tsx
42
code_completion
Complete this React Native code
/* * @Author: czy0729 * @Date: 2020-10-12 12:19:03 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-06 19:36:07
/* * @Author: czy0729 * @Date: 2020-10-12 12:19:03 * @Last Modified by: czy0729 * @Last Modified time: 2025-10-06 19:36:07 */ import React, { useCallback, useState } from 'react' import { View } from 'react-native' import { Component, Flex, Heatmap, Iconfont, ScrollViewHorizontal, Text } from '@components' import ...
czy0729_Bangumi
src/screens/home/subject/component/thumbs/index.tsx
.tsx
0
path_completion
Create a React Native file at: example/app/countries-reorder/index.tsx
Repository: LegendApp_legend-list
import { useMemo, useState } from "react"; import { Pressable, StatusBar, StyleSheet, Text, View } from "react-native"; import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context"; import { LegendList } from "@legendapp/list"; import { countries, getEmojiFlag, type TCountryCode } from "countries-li...
LegendApp_legend-list
example/app/countries-reorder/index.tsx
.tsx
189
code_completion
Complete this React Native code
'use strict'; import type { GestureResponderHandlers } from 'react-native'; import type { AccessibilityProps, ClipProps,
'use strict'; import type { GestureResponderHandlers } from 'react-native'; import type { AccessibilityProps, ClipProps, ColorProps, CommonFilterProps, CommonMarkerProps, CommonMaskProps, DefinitionProps, FillProps, NativeProps, ResponderProps, StrokeProps, TouchableProps, TransformProps, } fr...
software-mansion_react-native-reanimated
packages/react-native-reanimated/src/css/svg/native/configs/common.ts
.ts
0
file_completion
Write a screen for React Native: search.screen
/* eslint-disable no-shadow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View, ActivityIndicator, FlatList, Dimensions, Platform, } from 'react-native'; import { ButtonGroup } from 'react-native-elements'; import { SafeAreaView } from 'react-navigation'; import...
gitpoint_git-point
src/search/screens/search.screen.js
.js
387
code_completion
Complete this React Native code
import { SearchIcon } from "@artsy/icons/native" import { Flex, Text } from "@artsy/palette-mobile" export const GlobalSearchInputOverlayEmptyState = () => { return (
import { SearchIcon } from "@artsy/icons/native" import { Flex, Text } from "@artsy/palette-mobile" export const GlobalSearchInputOverlayEmptyState = () => { return ( <Flex> <Flex alignItems="center" mt={6} mb={1}> <SearchIcon fill="mono100" width={48} height={52} ...
artsy_eigen
src/app/Components/GlobalSearchInput/GlobalSearchInputOverlayEmptyState.tsx
.tsx
0
code_completion
Complete this React Native code
import React from 'react'; import { StyleSheet } from 'react-native'; import { TopNavigation, TopNavigationAction } from '@ui-kitten/components'; import { SafeAreaLayout } from '../../components/safe-area-layout.component'; import { ArrowIosBackIcon } from '../../components/icons';
import React from 'react'; import { StyleSheet } from 'react-native'; import { TopNavigation, TopNavigationAction } from '@ui-kitten/components'; import { SafeAreaLayout } from '../../components/safe-area-layout.component'; import { ArrowIosBackIcon } from '../../components/icons'; import ContentView from '../../layout...
akveo_kittenTricks
src/scenes/social/profile-settings-1.component.tsx
.tsx
0
path_completion
Create a React Native file at: src/showcases/components/input/inputSize.component.tsx
Repository: akveo_react-native-ui-kitten
import React from 'react'; import { StyleSheet } from 'react-native'; import { Input, InputProps } from '@ui-kitten/components'; const useInputState = (initialValue = ''): InputProps => { const [value, setValue] = React.useState(initialValue); return { value, onChangeText: setValue }; }; export const InputSizeSho...
akveo_react-native-ui-kitten
src/showcases/components/input/inputSize.component.tsx
.tsx
61
file_completion
Implement a React Native navigation named form-sheet
import { Stack } from 'expo-router'; import { Text, View } from 'react-native'; export default function Screen() { return ( <> <Stack.Header style={{ backgroundColor: 'transparent' }} /> <Stack.Toolbar placement="right"> <Stack.Toolbar.Button icon="checkmark" onPress={() => console.log('Check...
expo_expo
apps/router-e2e/__e2e__/native-navigation/app/modals/form-sheet.tsx
.tsx
21
file_completion
Generate React Native code for a component: index
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {withDatabase, withObservables} from '@nozbe/watermelondb/react'; import DateTimePicker, {type DateTimePickerEvent} from '@react-native-community/datetimepicker'; import moment, {type Moment} from 'mo...
mattermost_mattermost-mobile
app/components/data_time_selector/index.tsx
.tsx
136
file_completion
Implement a React Native component named Transparency
/* eslint-disable react-native/no-inline-styles */ //@flow import React, { useCallback, useState } from 'react'; import { View, Image } from 'react-native'; import ViewShot from 'react-native-view-shot'; const Transparency = () => { const [source, setSource] = useState(null); const onCapture = useCallback(uri => s...
gre_react-native-view-shot
example/Example/src/Transparency.js
.js
53
code_completion
Complete this React Native code
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {type ReactNode} from 'react'; import {defineMessages, useIntl} from 'react-intl';
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {type ReactNode} from 'react'; import {defineMessages, useIntl} from 'react-intl'; import {Text} from 'react-native'; import {removePost, sendAddToChannelEphemeralPost} from '@actions/local/po...
mattermost_mattermost-mobile
app/components/post_list/post/body/add_members/add_members.tsx
.tsx
0
file_completion
Write a component for React Native: Sitemap
// Copyright © 2024 650 Industries. 'use client'; import { NativeStackNavigationOptions } from '@react-navigation/native-stack'; import Constants from 'expo-constants'; import React from 'react'; import { Image, StyleSheet, Text, View, ScrollView, Platform, StatusBar, ViewStyle, } from 'react-native'; ...
expo_expo
packages/expo-router/src/views/Sitemap.tsx
.tsx
426
code_completion
Complete this React Native code
import type { ReactNode } from 'react'; import * as React from 'react'; import extractProps, { propsAndStyles } from '../lib/extract/extractProps'; import { extractFont } from '../lib/extract/extractText'; import extractTransform from '../lib/extract/extractTransform';
import type { ReactNode } from 'react'; import * as React from 'react'; import extractProps, { propsAndStyles } from '../lib/extract/extractProps'; import { extractFont } from '../lib/extract/extractText'; import extractTransform from '../lib/extract/extractTransform'; import type { CommonPathProps, FontProps, Nu...
software-mansion_react-native-svg
src/elements/G.tsx
.tsx
0
code_completion
Complete this React Native code
import { Flex, Text, Touchable, useColor } from "@artsy/palette-mobile" import { themeGet } from "@styled-system/theme-get" import { ConversationSnippet_conversation$data } from "__generated__/ConversationSnippet_conversation.graphql" import { ImageWithFallback } from "app/Components/ImageWithFallback/ImageWithFallback...
import { Flex, Text, Touchable, useColor } from "@artsy/palette-mobile" import { themeGet } from "@styled-system/theme-get" import { ConversationSnippet_conversation$data } from "__generated__/ConversationSnippet_conversation.graphql" import { ImageWithFallback } from "app/Components/ImageWithFallback/ImageWithFallback...
artsy_eigen
src/app/Scenes/Inbox/Components/Conversations/ConversationSnippet.tsx
.tsx
0
path_completion
Create a React Native file at: src/layouts/social/profile-settings-2/extra/profile-setting.component.tsx
Repository: akveo_kittenTricks
import React from 'react'; import { StyleSheet } from 'react-native'; import { Divider, Layout, LayoutProps, Text } from '@ui-kitten/components'; export interface ProfileSettingProps extends LayoutProps { hint?: string; value: string; } export const ProfileSetting = (props: ProfileSettingProps): React.ReactElemen...
akveo_kittenTricks
src/layouts/social/profile-settings-2/extra/profile-setting.component.tsx
.tsx
45
file_completion
Generate React Native code for a component: index
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useCallback} from 'react'; import {Modal, useWindowDimensions} from 'react-native'; import HighlightItem from './item'; type Props = { children?: React.ReactNode; itemBounds: Tutoria...
mattermost_mattermost-mobile
app/components/tutorial_highlight/index.tsx
.tsx
49
code_completion
Complete this React Native code
import { useEffect, useState } from "react"; import { Platform, StatusBar, StyleSheet, Text, View } from "react-native"; import { AnimatedBootSplash } from "./AnimatedBootSplash"; const styles = StyleSheet.create({
import { useEffect, useState } from "react"; import { Platform, StatusBar, StyleSheet, Text, View } from "react-native"; import { AnimatedBootSplash } from "./AnimatedBootSplash"; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgroundColor:...
zoontek_react-native-bootsplash
example/src/App.tsx
.tsx
0
path_completion
Create a React Native file at: src/layouts/social/feed-1/extra/data.ts
Repository: akveo_kittenTricks
import { ImageSourcePropType } from 'react-native'; export class Training { constructor(readonly title: string, readonly description: string, readonly photo: ImageSourcePropType, readonly time: number, readonly styx: number) { } static basketball(): Trai...
akveo_kittenTricks
src/layouts/social/feed-1/extra/data.ts
.ts
43
code_completion
Complete this React Native code
import {useCallback, useEffect, useRef, useState} from 'react'; import { View, Text, StyleSheet,
import {useCallback, useEffect, useRef, useState} from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Alert, Platform, Modal, ScrollView, } from 'react-native'; import Clipboard from '@react-native-clipboard/clipboard'; import { requestPurchase, useIAP, getAppTransactionIOS, getStor...
hyochan_react-native-iap
example/screens/PurchaseFlow.tsx
.tsx
0
code_completion
Complete this React Native code
import { type SharedValue, useDerivedValue } from 'react-native-reanimated'; import type { BottomSheetProps } from '../components/bottomSheet'; import { INITIAL_LAYOUT_VALUE } from '../constants'; import type { DetentsState, LayoutState } from '../types'; import { normalizeSnapPoint } from '../utilities';
import { type SharedValue, useDerivedValue } from 'react-native-reanimated'; import type { BottomSheetProps } from '../components/bottomSheet'; import { INITIAL_LAYOUT_VALUE } from '../constants'; import type { DetentsState, LayoutState } from '../types'; import { normalizeSnapPoint } from '../utilities'; /** * A cus...
gorhom_react-native-bottom-sheet
src/hooks/useAnimatedDetents.ts
.ts
0
file_completion
Generate React Native code for a component: network_manager
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import Emm from '@mattermost/react-native-emm'; import { type APIClientErrorEvent, type APIClientErrorEventHandler, getOrCreateAPIClient, RetryTypes, type APIClientConfiguration, } from '...
mattermost_mattermost-mobile
app/managers/network_manager.ts
.ts
183
path_completion
Create a React Native file at: example/screens/AllProducts.tsx
Repository: hyochan_react-native-iap
import {useEffect, useState, useMemo} from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Modal, SectionList, ScrollView, } from 'react-native'; import {useIAP} from 'react-native-iap'; import Loading from '../src/components/Loading'; import { PRODUCT_IDS, SUBSCRIPTION_PRODUCT_IDS, CONS...
hyochan_react-native-iap
example/screens/AllProducts.tsx
.tsx
842
path_completion
Create a React Native file at: example/src/Shared/Chat.tsx
Repository: satya164_react-native-tab-view
import * as React from 'react'; import { View, Image, Text, TextInput, ScrollView, StyleSheet, } from 'react-native'; const MESSAGES = [ 'okay', 'sudo make me a sandwich', 'what? make it yourself', 'make me a sandwich', ]; const Chat = () => { return ( <View style={styles.container}> <...
satya164_react-native-tab-view
example/src/Shared/Chat.tsx
.tsx
115
path_completion
Create a React Native file at: src/components/@/react-native-render-html/src/HTML.jsx
Repository: czy0729_Bangumi
/* * https://github.com/archriss/react-native-render-html/pull/268/commits/8a61abcd0d900bbc58141f5cf7491fb0f09fbfe4 * @Author: czy0729 * @Date: 2019-08-14 16:25:55 * @Last Modified by: czy0729 * @Last Modified time: 2026-02-01 00:51:34 */ import React, { PureComponent } from 'react' import { View, Text, Dimension...
czy0729_Bangumi
src/components/@/react-native-render-html/src/HTML.jsx
.jsx
627
file_completion
Write a screen for React Native: AppleAuthenticationScreen
import AsyncStorage from '@react-native-async-storage/async-storage'; import Slider from '@react-native-community/slider'; import * as AppleAuthentication from 'expo-apple-authentication'; import { type EventSubscription } from 'expo-modules-core'; import React from 'react'; import { Alert, Button, ScrollView, StyleShe...
expo_expo
apps/native-component-list/src/screens/AppleAuthenticationScreen.tsx
.tsx
277
code_completion
Complete this React Native code
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import View from '../../Components/View/View'; import Image from '../../Image/Image'; import...
facebook_react-native
packages/react-native/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js
.js
0
code_completion
Complete this React Native code
import React, { Component } from 'react'; import { StyleSheet, View, WebView, ActivityIndicator } from 'react-native'; const injectedJs = '[].forEach.call(document.querySelectorAll("img"),function(e){e.parentNode.removeChild(e);});' +
import React, { Component } from 'react'; import { StyleSheet, View, WebView, ActivityIndicator } from 'react-native'; const injectedJs = '[].forEach.call(document.querySelectorAll("img"),function(e){e.parentNode.removeChild(e);});' + '[].forEach.call(document.querySelectorAll("div.breadcrumb"),function(e){e.paren...
wix-incubator_react-native-interactable
playground/src/real-life-examples/UxInspirations.js
.js
0
code_completion
Complete this React Native code
import { CodedError } from './CodedError'; import Platform from '../Platform'; /** * A class for errors to be thrown when a property is accessed which is
import { CodedError } from './CodedError'; import Platform from '../Platform'; /** * A class for errors to be thrown when a property is accessed which is * unavailable, unsupported, or not currently implemented on the running * platform. */ export class UnavailabilityError extends CodedError { constructor(module...
expo_expo
packages/expo-modules-core/src/errors/UnavailabilityError.ts
.ts
0
path_completion
Create a React Native file at: app/components/illustrations/loading_error.tsx
Repository: mattermost_mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import Svg, {Circle, Ellipse, Path, Rect} from 'react-native-svg'; import {useTheme} from '@context/theme'; const LoadingError = () => { const theme = useTheme(); return...
mattermost_mattermost-mobile
app/components/illustrations/loading_error.tsx
.tsx
116
file_completion
Create a React Native component called iOSUIKit
// @ts-nocheck TODO: Fix types import React from "react"; import { iOSUIKit } from "react-native-typography"; import TypeDemo from "../components/TypeDemo"; export default function IOSUIKit() { return ( <TypeDemo blackStyles={[ { style: iOSUIKit.largeTitleEmphasized, text: "Bold...
hectahertz_react-native-typography
demo/app/iOSUIKit.tsx
.tsx
146
code_completion
Complete this React Native code
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
ptmt_react-native-macos
Libraries/Lists/VirtualizedSectionList.js
.js
0
file_completion
Build a streaming_indicator component in React Native
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useEffect} from 'react'; import {View} from 'react-native'; import Animated, { useAnimatedStyle, useSharedValue, withRepeat, withSequence, withTiming, cancelAnimation, ...
mattermost_mattermost-mobile
app/products/agents/components/agent_post/streaming_indicator.tsx
.tsx
69
path_completion
Create a React Native file at: app/screens/convert_gm_to_channel/convert_gm_to_channel_form/no_common_teams_form.tsx
Repository: mattermost_mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {useIntl} from 'react-intl'; import {View, type ViewStyle} from 'react-native'; import Button from '@components/button'; import {useTheme} from '@context/theme'; import {po...
mattermost_mattermost-mobile
app/screens/convert_gm_to_channel/convert_gm_to_channel_form/no_common_teams_form.tsx
.tsx
60
file_completion
Implement a React Native screen named WalletDetails
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { ActivityIndicator, InteractionManager, LayoutAnimation, StyleSheet, Switch, Text, TextInput, TouchableOpacity, View, } from 'react-native'; import { writeFileAndExport } from '../../blue_modules/fs'; import trig...
BlueWallet_BlueWallet
screen/wallets/WalletDetails.tsx
.tsx
742
path_completion
Create a React Native file at: apps/router-e2e/__e2e__/server-loader/app/index.tsx
Repository: expo_expo
import { useLoaderData, useLocalSearchParams, usePathname } from 'expo-router'; import { Suspense } from 'react'; import { Loading } from '../components/Loading'; import { Table, TableRow } from '../components/Table'; import { SiteLinks, SiteLink } from '../components/SiteLink'; export async function loader() { ret...
expo_expo
apps/router-e2e/__e2e__/server-loader/app/index.tsx
.tsx
51
file_completion
Write a component for React Native: SortableListContext
import {createContext} from 'react'; import type {ViewProps, FlatListProps} from 'react-native'; import {SharedValue} from 'react-native-reanimated'; import type {Dictionary} from '../../typings/common'; import {Data, OrderChangeInfo, SortableListItemProps, SortableListProps} from './types'; export interface SortableL...
wix_react-native-ui-lib
packages/react-native-ui-lib/src/components/sortableList/SortableListContext.ts
.ts
24
path_completion
Create a React Native file at: packages/common/src/dynamicLoading/dynamic-loading-setting.ts
Repository: oblador_react-native-vector-icons
import { Platform } from 'react-native'; import type { FontSource } from './types'; type ExpoAssetModule = { // definition from // https://github.com/expo/expo/blob/1f5a5991d14aad09282d1ce1612b44d30e7e7d3d/packages/expo-asset/ios/AssetModule.swift#L23 downloadAsync: (uri: string, hash: string | undefined, type:...
oblador_react-native-vector-icons
packages/common/src/dynamicLoading/dynamic-loading-setting.ts
.ts
133
file_completion
Build a without-animated component in React Native
import { createContext } from 'react' export { createElement as unstable_createElement } from './createElement/index' export { AccessibilityUtil, canUseDOM, clickProps, createDOMProps, dismissKeyboard, flattenStyle, ImageLoader, InteractionManager, isWebColor, LocaleProvider, mergeRefs, normali...
tamagui_tamagui
code/packages/react-native-web-lite/src/without-animated.tsx
.tsx
289
file_completion
Write a component for React Native: ArtQuizTrendingCollection
import { Flex, Spacer, Text } from "@artsy/palette-mobile" import { ArtQuizTrendingCollection_collection$key } from "__generated__/ArtQuizTrendingCollection_collection.graphql" import { ArtQuizTrendingCollections_viewer$data } from "__generated__/ArtQuizTrendingCollections_viewer.graphql" import { ArtworkRail } from "a...
artsy_eigen
src/app/Scenes/ArtQuiz/ArtQuizResults/ArtQuizResultsTabs/ArtQuizTrendingCollection.tsx
.tsx
62
file_completion
Create a React Native component called FeatureFeaturedLink
import { DEFAULT_ACTIVE_OPACITY, Flex, Text } from "@artsy/palette-mobile" import { FeatureFeaturedLink_featuredLink$data } from "__generated__/FeatureFeaturedLink_featuredLink.graphql" import { ImageWithFallback } from "app/Components/ImageWithFallback/ImageWithFallback" import { navigate } from "app/system/navigation...
artsy_eigen
src/app/Scenes/Feature/components/FeatureFeaturedLink.tsx
.tsx
73
file_completion
Generate React Native code for a component: ArticleCard
import { ArticleCard_article$data } from "__generated__/ArticleCard_article.graphql" import { CardWithMetaData } from "app/Components/Cards/CardWithMetaData" import { compact } from "lodash" import { DateTime } from "luxon" import { memo } from "react" import { GestureResponderEvent, ViewProps } from "react-native" imp...
artsy_eigen
src/app/Components/ArticleCard.tsx
.tsx
56
code_completion
Complete this React Native code
import React from 'react'; import { Icon, useBreakpointValue, Text,
import React from 'react'; import { Icon, useBreakpointValue, Text, VStack, Heading, ScrollView, } from 'native-base'; import { Foundation, Feather } from '@expo/vector-icons'; import { View } from 'react-native'; export const Example = () => { const flexDir = useBreakpointValue({ base: 'column', ...
GeekyAnts_NativeBase
example/storybook/stories/hooks/useBreakpointValue/usage.tsx
.tsx
0
path_completion
Create a React Native file at: src/components/primitives/Radio/Radio.tsx
Repository: GeekyAnts_NativeBase
import React, { memo, forwardRef } from 'react'; //@ts-ignore import stableHash from 'stable-hash'; import { Pressable, IPressableProps } from '../Pressable'; import { Center } from '../../composites/Center'; import Box from '../Box'; import { Stack } from '../Stack'; import { usePropsResolution } from '../../../hooks/...
GeekyAnts_NativeBase
src/components/primitives/Radio/Radio.tsx
.tsx
212