mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update Accessibility, Animated and Appearance type exports (#50421)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50421 Changelog: [Internal] Reviewed By: huntie Differential Revision: D72224821 fbshipit-source-id: 604fcdcabc1b6eeca7df3a32faf2505ddf268547
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f446ac346d
commit
30fd5a3c05
@@ -37,6 +37,7 @@ export type {default as AnimatedDivision} from './nodes/AnimatedDivision';
|
||||
export type {default as AnimatedModulo} from './nodes/AnimatedModulo';
|
||||
export type {default as AnimatedMultiplication} from './nodes/AnimatedMultiplication';
|
||||
export type {default as AnimatedSubtraction} from './nodes/AnimatedSubtraction';
|
||||
export type {WithAnimatedValue} from './createAnimatedComponent';
|
||||
|
||||
export const add = AnimatedImplementation.add;
|
||||
export const attachNativeEvent = AnimatedImplementation.attachNativeEvent;
|
||||
|
||||
@@ -16,6 +16,8 @@ import NativeEventEmitter from '../EventEmitter/NativeEventEmitter';
|
||||
import EventEmitter from '../vendor/emitter/EventEmitter';
|
||||
import invariant from 'invariant';
|
||||
|
||||
export type {AppearancePreferences};
|
||||
|
||||
type Appearance = {
|
||||
colorScheme: ?ColorSchemeName,
|
||||
};
|
||||
|
||||
@@ -185,6 +185,7 @@ export type { default as AnimatedDivision } from \\"./nodes/AnimatedDivision\\";
|
||||
export type { default as AnimatedModulo } from \\"./nodes/AnimatedModulo\\";
|
||||
export type { default as AnimatedMultiplication } from \\"./nodes/AnimatedMultiplication\\";
|
||||
export type { default as AnimatedSubtraction } from \\"./nodes/AnimatedSubtraction\\";
|
||||
export type { WithAnimatedValue } from \\"./createAnimatedComponent\\";
|
||||
declare export const add: $FlowFixMe;
|
||||
declare export const attachNativeEvent: $FlowFixMe;
|
||||
declare export const createAnimatedComponent: $FlowFixMe;
|
||||
@@ -8515,7 +8516,8 @@ declare export default typeof UTFSequence;
|
||||
`;
|
||||
|
||||
exports[`public API should not change unintentionally Libraries/Utilities/Appearance.js 1`] = `
|
||||
"declare export function getColorScheme(): ?ColorSchemeName;
|
||||
"export type { AppearancePreferences };
|
||||
declare export function getColorScheme(): ?ColorSchemeName;
|
||||
declare export function setColorScheme(colorScheme: ?ColorSchemeName): void;
|
||||
declare export function addChangeListener(
|
||||
listener: ({ colorScheme: ?ColorSchemeName }) => void
|
||||
@@ -9473,6 +9475,10 @@ export type { TouchableOpacityProps } from \\"./Libraries/Components/Touchable/T
|
||||
export { default as TouchableOpacity } from \\"./Libraries/Components/Touchable/TouchableOpacity\\";
|
||||
export type { TouchableWithoutFeedbackProps } from \\"./Libraries/Components/Touchable/TouchableWithoutFeedback\\";
|
||||
export { default as TouchableWithoutFeedback } from \\"./Libraries/Components/Touchable/TouchableWithoutFeedback\\";
|
||||
export type {
|
||||
AccessibilityRole,
|
||||
AccessibilityState,
|
||||
} from \\"./Libraries/Components/View/ViewAccessibility\\";
|
||||
export type {
|
||||
GestureResponderHandlers,
|
||||
TVViewPropsIOS,
|
||||
|
||||
@@ -155,6 +155,10 @@ export {default as TouchableOpacity} from './Libraries/Components/Touchable/Touc
|
||||
export type {TouchableWithoutFeedbackProps} from './Libraries/Components/Touchable/TouchableWithoutFeedback';
|
||||
export {default as TouchableWithoutFeedback} from './Libraries/Components/Touchable/TouchableWithoutFeedback';
|
||||
|
||||
export type {
|
||||
AccessibilityRole,
|
||||
AccessibilityState,
|
||||
} from './Libraries/Components/View/ViewAccessibility';
|
||||
export type {
|
||||
GestureResponderHandlers,
|
||||
TVViewPropsIOS,
|
||||
|
||||
Reference in New Issue
Block a user