-
Notifications
You must be signed in to change notification settings - Fork 736
Native lib reorder and fix ios #3750
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
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
bc60371
Native lib - reorganize components in folders for convenience + bump …
Inbal-Tish 55eddd0
pointing to index
Inbal-Tish 736ea87
revert naming change
Inbal-Tish c6a7396
fix api files
Inbal-Tish e8e7bd2
rename HighlighterOverlay web
Inbal-Tish 273c7d0
Moving sub components to the parent
Inbal-Tish 84e6463
Merge branch 'master' of github.com:wix/react-native-ui-lib into infr…
Inbal-Tish 717910e
Merge branch 'rn77-new-arch' into infra/lib_reorder
M-i-k-e-l 57cf916
Merge branch 'rn77-new-arch' into infra/lib_reorder
M-i-k-e-l 762b6b7
Merge branch 'rn77-new-arch' into infra/lib_reorder
M-i-k-e-l ff64327
fix api file and move KeyboardUtils outside folder
Inbal-Tish 2d649c0
Revert "fix api file and move KeyboardUtils outside folder"
Inbal-Tish 7442f3a
fix api json
Inbal-Tish 2d5f808
Merge branch 'infra/lib_reorder' of github.com:wix/react-native-ui-li…
Inbal-Tish cd7ddae
fix folder name to match component name
Inbal-Tish 7713b39
remove specs
Inbal-Tish bcc8e19
fix highligther view native registration
Inbal-Tish 1c7145a
fix for SafeAreaSpacerView
Inbal-Tish ec09d65
fix types
Inbal-Tish c3c4697
fix for KeyboardTrackingView
Inbal-Tish 76284d3
trying to fix failed CI build
Inbal-Tish 6f1711e
SafeAreaSpacesView - moving to react implementation using native Safe…
Inbal-Tish f6a217a
manager changes
Inbal-Tish 7b7a92c
fix safe area
Inbal-Tish 652ddae
fix SafeAreaSpacerView again
Inbal-Tish fae58ab
removing logs
Inbal-Tish 860ce8a
Merge branch 'rn77-new-arch' into infra/lib_reorder
M-i-k-e-l 255ca3b
Fix highlightViewTag type
M-i-k-e-l 7a06a47
Fix TS error
M-i-k-e-l 9732c27
Typescript fixes \ revert
M-i-k-e-l 87a937c
Revert
M-i-k-e-l 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
77 changes: 77 additions & 0 deletions
77
lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts
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,77 @@ | ||
import type {ViewProps} from 'react-native'; | ||
import type { | ||
Float, | ||
Int32, | ||
WithDefault | ||
} from 'react-native/Libraries/Types/CodegenTypes'; | ||
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; | ||
|
||
export interface HighlightFrame { | ||
x: Float; | ||
y: Float; | ||
width: Float; | ||
height: Float; | ||
} | ||
|
||
export interface MinimumRectSize { | ||
width: Float; | ||
height: Float; | ||
} | ||
|
||
export interface HighlightViewTagParams { | ||
paddingLeft?: WithDefault<Float, 0>; | ||
paddingTop?: WithDefault<Float, 0>; | ||
paddingRight?: WithDefault<Float, 0>; | ||
paddingBottom?: WithDefault<Float, 0>; | ||
offsetX?: WithDefault<Float, 0>; | ||
offsetY?: WithDefault<Float, 0>; | ||
} | ||
|
||
export interface NativeProps extends ViewProps { | ||
/** | ||
* The frame to highlight with x, y, width, height coordinates | ||
*/ | ||
highlightFrame?: HighlightFrame; | ||
|
||
/** | ||
* The overlay color (processed color int for Android) | ||
*/ | ||
overlayColor?: WithDefault<Int32, 0>; | ||
|
||
/** | ||
* The border radius for the highlighted area | ||
*/ | ||
borderRadius?: WithDefault<Float, 0>; | ||
|
||
/** | ||
* The stroke color (processed color int for Android) | ||
*/ | ||
strokeColor?: WithDefault<Int32, 0>; | ||
|
||
/** | ||
* The stroke width | ||
*/ | ||
strokeWidth?: WithDefault<Float, 0>; | ||
|
||
/** | ||
* The React tag of the view to highlight | ||
*/ | ||
highlightViewTag?: Int32; | ||
|
||
/** | ||
* Parameters for view-based highlighting including padding and offset | ||
*/ | ||
highlightViewTagParams?: HighlightViewTagParams; | ||
|
||
/** | ||
* Minimum rectangle size for the highlight area | ||
*/ | ||
minimumRectSize?: MinimumRectSize; | ||
|
||
/** | ||
* Inner padding for the highlight area | ||
*/ | ||
innerPadding?: WithDefault<Float, 0>; | ||
} | ||
|
||
export default codegenNativeComponent<NativeProps>('HighlighterView'); |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...yboardView/CustomKeyboardView.android.tsx → ...yboardView/CustomKeyboardView.android.tsx
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
6 changes: 3 additions & 3 deletions
6
...omKeyboardView/CustomKeyboardView.ios.tsx → ...omKeyboardView/CustomKeyboardView.ios.tsx
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
2 changes: 1 addition & 1 deletion
2
.../KeyboardInput/CustomKeyboardViewBase.tsx → ...omKeyboardView/CustomKeyboardViewBase.tsx
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ils/__tests__/EventEmitterManager.spec.js → ...ger/__tests__/EventEmitterManager.spec.js
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...dInput/__tests__/KeyboardRegistry.spec.js → ...gistry/__tests__/KeyboardRegistry.spec.js
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
4 changes: 2 additions & 2 deletions
4
...eyboard/KeyboardInput/KeyboardRegistry.ts → ...rdAccessoryView/KeyboardRegistry/index.ts
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
18 changes: 9 additions & 9 deletions
18
...d/KeyboardInput/keyboardRegistry.api.json → ...eyboardRegistry/keyboardRegistry.api.json
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...boardTracking/KeyboardAwareInsetsView.tsx → ...eyboard/KeyboardAwareInsetsView/index.tsx
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
File renamed without changes.
File renamed without changes.
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.
This is a general comment (I assume this appears in other files).
Although we've said we should replace these, let's check with Gosha if we should use the
CodegenTypes
(such asFloat
) or simplynumber
, could this be more correct?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.
Leaving for now, might look back at it later
https://reactnative.dev/docs/turbo-native-modules-introduction