-
Notifications
You must be signed in to change notification settings - Fork 5
CU-868ex18rd Expo 53 update. #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0dca2cd
CU-868ex18rd Expo 53 update.
ucswift ca24b5f
CU-868ex18rd Fixing typing issues.
ucswift fae9b9e
CU-868ex18rd Trying to fix tests.
ucswift f7ba671
CU-868ex18rd Reverting some changes to the UI components.
ucswift f097a54
CU-868ex18rd CI build fix
ucswift File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| .eslintignorenode_modules | ||
| __tests__/ | ||
| __mocks__/ | ||
| .vscode/ | ||
| android/ | ||
| coverage/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| node_modules/**/* | ||
| **/node_modules/**/* | ||
| node_modules/@gluestack-ui/**/* | ||
| **/@gluestack-ui/**/* |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function Avatar(props: any) { | ||
| return React.createElement('div', { ...props, style: { width: '48px', height: '48px', borderRadius: '50%', ...(props.style || {}) } }, props.children); | ||
| } | ||
|
|
||
| export function AvatarImage(props: any) { | ||
| return React.createElement('img', { ...props, alt: props.alt || '' }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function Box(props: any) { | ||
| return React.createElement('div', props, props.children); | ||
| } |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function Button(props: any) { | ||
| return React.createElement('button', { ...props, type: 'button' }, props.children); | ||
| } | ||
|
|
||
| export function ButtonText(props: any) { | ||
| return React.createElement('span', props, props.children); | ||
| } |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function HStack(props: any) { | ||
| return React.createElement('div', { ...props, style: { display: 'flex', flexDirection: 'row', ...(props.style || {}) } }, props.children); | ||
| } |
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function Pressable(props: any) { | ||
| return React.createElement('button', { ...props, type: 'button', onClick: props.onPress }, props.children); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function Text(props: any) { | ||
| return React.createElement('span', props, props.children); | ||
| } |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // @ts-nocheck | ||
| import React from 'react'; | ||
|
|
||
| export function VStack(props: any) { | ||
| return React.createElement('div', { ...props, style: { display: 'flex', flexDirection: 'column', ...(props.style || {}) } }, props.children); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // Mock for lucide-react-native icons | ||
| const React = require('react'); | ||
| const { View } = require('react-native'); | ||
|
|
||
| const mockIcon = React.forwardRef((props: any, ref: any) => { | ||
| return React.createElement(View, { ...props, ref, testID: `icon-${props.testID || 'mock'}` }); | ||
| }); | ||
|
|
||
| export const AlertCircle = mockIcon; | ||
| export const Bell = mockIcon; | ||
| export const BuildingIcon = mockIcon; | ||
| export const CalendarIcon = mockIcon; | ||
| export const CheckCircle = mockIcon; | ||
| export const ChevronDownIcon = mockIcon; | ||
| export const ChevronRightIcon = mockIcon; | ||
| export const ChevronRight = mockIcon; | ||
| export const Circle = mockIcon; | ||
| export const ClockIcon = mockIcon; | ||
| export const Edit2Icon = mockIcon; | ||
| export const ExternalLink = mockIcon; | ||
| export const FileTextIcon = mockIcon; | ||
| export const GlobeIcon = mockIcon; | ||
| export const HomeIcon = mockIcon; | ||
| export const ImageIcon = mockIcon; | ||
| export const InfoIcon = mockIcon; | ||
| export const MailIcon = mockIcon; | ||
| export const MapPinIcon = mockIcon; | ||
| export const MessageCircle = mockIcon; | ||
| export const MoreVertical = mockIcon; | ||
| export const PaperclipIcon = mockIcon; | ||
| export const Phone = mockIcon; | ||
| export const PhoneIcon = mockIcon; | ||
| export const RouteIcon = mockIcon; | ||
| export const SettingsIcon = mockIcon; | ||
| export const SmartphoneIcon = mockIcon; | ||
| export const StarIcon = mockIcon; | ||
| export const TrashIcon = mockIcon; | ||
| export const Trash2 = mockIcon; | ||
| export const User = mockIcon; | ||
| export const UserCheck = mockIcon; | ||
| export const UserIcon = mockIcon; | ||
| export const Users = mockIcon; | ||
| export const UsersIcon = mockIcon; | ||
| export const X = mockIcon; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| const React = require('react'); | ||
| const { View } = require('react-native'); | ||
|
|
||
| // Mock implementation of WebView | ||
| const MockWebView = React.forwardRef((props, ref) => { | ||
| return React.createElement(View, { | ||
| ...props, | ||
| ref, | ||
| testID: props.testID || 'webview-mock', | ||
| }); | ||
| }); | ||
|
|
||
| module.exports = { | ||
| WebView: MockWebView, | ||
| default: MockWebView, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| // Mock React Native for Jest testing environment | ||
| export const Platform = { | ||
| OS: 'ios', | ||
| select: jest.fn().mockImplementation((obj) => obj.ios || obj.default), | ||
| }; | ||
|
|
||
| export const PermissionsAndroid = { | ||
| PERMISSIONS: { | ||
| BLUETOOTH_SCAN: 'android.permission.BLUETOOTH_SCAN', | ||
| BLUETOOTH_CONNECT: 'android.permission.BLUETOOTH_CONNECT', | ||
| ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION', | ||
| }, | ||
| RESULTS: { | ||
| GRANTED: 'granted', | ||
| DENIED: 'denied', | ||
| NEVER_ASK_AGAIN: 'never_ask_again', | ||
| }, | ||
| requestMultiple: jest.fn(), | ||
| request: jest.fn(), | ||
| }; | ||
|
|
||
| export const DeviceEventEmitter = { | ||
| addListener: jest.fn(), | ||
| removeAllListeners: jest.fn(), | ||
| emit: jest.fn(), | ||
| }; | ||
|
|
||
| export const Alert = { | ||
| alert: jest.fn(), | ||
| }; | ||
|
|
||
| export const Linking = { | ||
| canOpenURL: jest.fn().mockResolvedValue(true), | ||
| openURL: jest.fn().mockResolvedValue(undefined), | ||
| }; | ||
|
|
||
| export const useColorScheme = jest.fn().mockReturnValue('light'); | ||
|
|
||
| export const useWindowDimensions = jest.fn().mockReturnValue({ | ||
| width: 375, | ||
| height: 812, | ||
| }); | ||
|
|
||
| // Mock other commonly used React Native components | ||
| export const View = 'View'; | ||
| export const Text = 'Text'; | ||
| export const ScrollView = 'ScrollView'; | ||
| export const StyleSheet = { | ||
| create: jest.fn().mockImplementation((styles) => styles), | ||
| }; | ||
|
|
||
| // Export default | ||
| export default { | ||
| Platform, | ||
| PermissionsAndroid, | ||
| DeviceEventEmitter, | ||
| Alert, | ||
| Linking, | ||
| View, | ||
| Text, | ||
| StyleSheet, | ||
| useColorScheme, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify all icon names used in app code are covered by this mock
Gaps will surface as “is not a function/undefined” at render-time in tests.
🏁 Script executed:
Length of output: 355
🏁 Script executed:
Length of output: 5397
Add missing mock exports for all used lucide-react-native icons
mocks/lucide-react-native.ts currently only covers a subset of the icons imported across the app—exports for icons like ArrowRight, Bell, BluetoothConnected, CalendarCheck, Car, Check, Circle, Clock, Contact, FileText, Loader2, MailOpen, Mic, PlusIcon, SearchIcon, XIcon, and many others are absent. Add an export for every icon your import-vs-mock script lists to prevent undefined/function errors in tests.
🤖 Prompt for AI Agents