Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/eslint-plugin-react-native/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,6 @@ const publicAPIMapping = {
default: 'LogBox',
types: ['ExtendedExceptionData', 'IgnorePattern', 'LogData'],
},
'Libraries/NativeModules/specs/NativeDialogManagerAndroid': {
default: 'NativeDialogManagerAndroid',
types: null,
},
'Libraries/EventEmitter/NativeEventEmitter': {
default: 'NativeEventEmitter',
types: [
Expand Down
7 changes: 7 additions & 0 deletions packages/react-native/Libraries/Text/TextProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ export type TextPropsAndroid = {
type TextBaseProps = Readonly<{
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => unknown,

/**
* Controls whether the `Text` can be the target of touch events.
*
* See https://reactnative.dev/docs/view#pointerevents
*/
pointerEvents?: ?('auto' | 'box-none' | 'box-only' | 'none'),

/**
* Whether fonts should scale to respect Text Size accessibility settings.
* The default is `true`.
Expand Down
41 changes: 6 additions & 35 deletions packages/react-native/ReactNativeApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<88d962e8bf936576e85b897a4192f39a>>
* @generated SignedSource<<bc37189419aeaea2bfd173ec0a03df96>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
Expand Down Expand Up @@ -86,7 +86,6 @@ declare const $$index: {
get VirtualizedSectionList(): AnyVirtualizedSectionList
}
declare const $$NativeDeviceInfo: typeof NativeDeviceInfo_default
declare const $$NativeDialogManagerAndroid: null | Spec | undefined
declare const $$ProgressBarAndroidNativeComponent: HostComponent<AndroidProgressBarNativeProps>
declare const $$ReactFabric: typeof ReactFabric_default
declare const $$ScrollViewContext: typeof ScrollViewContext_default
Expand Down Expand Up @@ -287,7 +286,6 @@ declare const NativeAppEventEmitter: typeof RCTNativeAppEventEmitter_default
declare const NativeDeviceInfo_default: {
getConstants(): DeviceInfoConstants
}
declare const NativeDialogManagerAndroid: typeof $$NativeDialogManagerAndroid
declare const NativeModules: typeof NativeModules_default
declare let NativeModules_default: {
[moduleName: string]: any
Expand Down Expand Up @@ -985,7 +983,6 @@ declare type $$AnimatedView = typeof $$AnimatedView
declare type $$flattenStyle = typeof $$flattenStyle
declare type $$index = typeof $$index
declare type $$NativeDeviceInfo = typeof $$NativeDeviceInfo
declare type $$NativeDialogManagerAndroid = typeof $$NativeDialogManagerAndroid
declare type $$ProgressBarAndroidNativeComponent =
typeof $$ProgressBarAndroidNativeComponent
declare type $$ReactFabric = typeof $$ReactFabric
Expand Down Expand Up @@ -1956,17 +1953,6 @@ declare type DevMenuStatic = {
show(): void
}
declare type DevSettings = typeof DevSettings
declare type DialogAction = string
declare type DialogButtonKey = number
declare type DialogOptions = {
buttonNegative?: string
buttonNeutral?: string
buttonPositive?: string
cancelable?: boolean
items?: Array<string>
message?: string
title?: string
}
declare type diffClamp = typeof diffClamp
declare class Dimensions {
static addEventListener(type: "change", handler: Function): EventSubscription
Expand Down Expand Up @@ -3213,7 +3199,6 @@ declare namespace NativeComponentRegistry {
export { setRuntimeConfigProvider, get, getWithFallback_DEPRECATED }
}
declare type NativeComponentType<T extends {}> = HostComponent<T>
declare type NativeDialogManagerAndroid = typeof NativeDialogManagerAndroid
declare class NativeEventEmitter<
TEventToArgsMap extends Readonly<
Record<string, ReadonlyArray<UnsafeNativeEventObject>>
Expand Down Expand Up @@ -4671,20 +4656,6 @@ declare type ShareOptions = {
tintColor?: ColorValue
}
declare interface Spec extends TurboModule {
readonly getConstants: () => {
readonly buttonClicked: DialogAction
readonly buttonNegative: DialogButtonKey
readonly buttonNeutral: DialogButtonKey
readonly buttonPositive: DialogButtonKey
readonly dismissed: DialogAction
}
readonly showAlert: (
config: DialogOptions,
onError: (error: string) => void,
onAction: (action: DialogAction, buttonKey?: DialogButtonKey) => void,
) => void
}
declare interface Spec_2 extends TurboModule {
readonly blur?: (reactTag: number) => void
readonly clearJSResponder: () => void
readonly configureNextLayoutAnimation: (
Expand Down Expand Up @@ -5043,6 +5014,7 @@ declare type TextBaseProps = {
readonly onResponderTerminationRequest?: () => boolean
readonly onStartShouldSetResponder?: () => boolean
readonly onTextLayout?: (event: TextLayoutEvent) => unknown
readonly pointerEvents?: "auto" | "box-none" | "box-only" | "none"
readonly pressRetentionOffset?: PressRetentionOffset
readonly role?: Role
readonly selectable?: boolean
Expand Down Expand Up @@ -5599,7 +5571,7 @@ declare type TVViewPropsIOS = {
readonly tvParallaxTiltAngle?: number
}
declare type UIManager = typeof UIManager
declare interface UIManagerJSInterface extends Spec_2 {
declare interface UIManagerJSInterface extends Spec {
readonly getViewManagerConfig: (viewManagerName: string) => Object
readonly hasViewManagerConfig: (viewManagerName: string) => boolean
}
Expand Down Expand Up @@ -5958,7 +5930,7 @@ export {
AlertOptions, // a0cdac0f
AlertType, // 5ab91217
AndroidKeyboardEvent, // e03becc8
Animated, // d3264d4b
Animated, // 58b532cf
AppConfig, // ce4209a7
AppRegistry, // 5edf0524
AppState, // 12012be5
Expand Down Expand Up @@ -6078,7 +6050,6 @@ export {
NativeAppEventEmitter, // 08d4c47d
NativeColorValue, // d2094c29
NativeComponentRegistry, // 6497d2b6
NativeDialogManagerAndroid, // 5be8497e
NativeEventEmitter, // 27f97c1a
NativeEventSubscription, // de3942e7
NativeMethods, // ce1a8622
Expand Down Expand Up @@ -6174,7 +6145,7 @@ export {
TVViewPropsIOS, // 330ce7b5
TargetedEvent, // 16e98910
TaskProvider, // 266dedf2
Text, // 0937861d
Text, // ef2e8026
TextContentType, // 239b3ecc
TextInput, // ee8f6f5d
TextInputAndroidProps, // 3f09ce49
Expand All @@ -6188,7 +6159,7 @@ export {
TextInputSelectionChangeEvent, // 1a6383cf
TextInputSubmitEditingEvent, // e3152e2d
TextLayoutEvent, // c3e8821d
TextProps, // fb3a9124
TextProps, // dabce68a
TextStyle, // bb9b7a58
ToastAndroid, // 88a8969a
Touchable, // a05e8365
Expand Down
4 changes: 0 additions & 4 deletions packages/react-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ module.exports = {
get NativeComponentRegistry() {
return require('./Libraries/NativeComponent/NativeComponentRegistry');
},
get NativeDialogManagerAndroid() {
return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')
.default;
},
get NativeEventEmitter() {
return require('./Libraries/EventEmitter/NativeEventEmitter').default;
},
Expand Down
2 changes: 0 additions & 2 deletions packages/react-native/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ export {default as NativeAppEventEmitter} from './Libraries/EventEmitter/RCTNati

export * as NativeComponentRegistry from './Libraries/NativeComponent/NativeComponentRegistry';

export {default as NativeDialogManagerAndroid} from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';

export type {
EmitterSubscription,
NativeEventSubscription,
Expand Down
6 changes: 4 additions & 2 deletions packages/react-native/types/public/ReactNativeTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export type MeasureLayoutOnSuccessCallback = (
* native view. This will generally include most components that you define in your own app.
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture).
* @see https://github.com/facebook/react-native/blob/master/Libraries/Renderer/shims/ReactNativeTypes.js#L87
*
* @deprecated Use HostInstance instead.
*/
export interface NativeMethods {
/**
Expand Down Expand Up @@ -112,11 +114,11 @@ export interface NativeMethods {
}

/**
* @deprecated Use NativeMethods instead.
* @deprecated Use HostInstance instead.
*/
export type NativeMethodsMixin = NativeMethods;
/**
* @deprecated Use NativeMethods instead.
* @deprecated Use HostInstance instead.
*/
export type NativeMethodsMixinType = NativeMethods;

Expand Down
Loading