mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a664d03ce8
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44109 (Following up from suggestion of prior diff) For consistency with `OnSelectionChange` callback, rename `onPopupDismiss` to `onDismiss`. Changelog: [Android][Internal] - rename function Reviewed By: RSNara Differential Revision: D56168456 fbshipit-source-id: c4a32637951200736202f43294973d783ecf5ace
26 lines
637 B
TypeScript
26 lines
637 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import type * as React from 'react';
|
|
import {HostComponent} from 'react-native';
|
|
|
|
type PopupMenuAndroidInstance = {
|
|
show: () => void;
|
|
};
|
|
|
|
type Props = {
|
|
menuItems: Array<string>;
|
|
onSelectionChange: (number) => void;
|
|
onDismiss: () => void;
|
|
children: React.ReactNode | undefined;
|
|
instanceRef: React.ElementRef<HostComponent<PopupMenuAndroidInstance>>;
|
|
};
|
|
|
|
declare class PopupMenuAndroid extends React.Component<Props> {}
|