-
Notifications
You must be signed in to change notification settings - Fork 706
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
Infra/rn73 #3264
base: master
Are you sure you want to change the base?
Infra/rn73 #3264
Conversation
@@ -104,7 +104,7 @@ describe('Incubator.Dialog sanity checks', () => { | |||
const onDismiss = jest.fn(); | |||
const component = <TestCase2 onDismiss={onDismiss}/>; | |||
const {dialogDriver} = getDriver(component); | |||
expect(dialogDriver.exists()).toBeTruthy(); | |||
expect(dialogDriver.exists()).toBeFalsy(); |
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.
You need to change the description of the test - Modal should not exist...
const {renderTree, testID} = props; | ||
|
||
const driver = usePressableDriver(useComponentDriver({renderTree, testID})); | ||
const isUsingDialog = !!renderTree.queryByTestId(`${testID}.overlay.modal`); | ||
// const isUsingDialog = !!renderTree.queryByTestId(`${testID}.overlay.modal`); | ||
const isUsingDialog = useDialog; |
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.
Why we need isUsingDialog
const now?
export interface ComponentProps { | ||
renderTree: ReturnType<typeof within>; // Note: This changed was asked for integration with amino. This still gives all querying functionality. | ||
testID: string | RegExp; | ||
} | ||
|
||
export interface ComponentDriverResult { | ||
getElement: () => ReactTestInstance; | ||
queryElement:() => ReactTestInstance | undefined; |
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.
Missing a space after the colon
@ethanshar Looks good. Left super small comments and you need to take it out of draft mode |
@@ -42,11 +42,11 @@ export type CardProps = ViewProps & | |||
/** | |||
* card custom width | |||
*/ | |||
width?: number | string; | |||
width?: DimensionValue; |
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.
DimensionValue
doesn't support string
value without %
.
Do we want to remove the string
support from these props?
Relevant for all the components with DimensionValue
type.
Description
I know it's a huge PR, I suggest going over it by commits
There are other less important small commits in between...
Changelog
Upgrade support to React Native 0.73
Additional info