diff --git a/packages/react-native/Libraries/Components/Button.js b/packages/react-native/Libraries/Components/Button.js index 64dd7ced00ae8b..cc1ccbf7013a35 100644 --- a/packages/react-native/Libraries/Components/Button.js +++ b/packages/react-native/Libraries/Components/Button.js @@ -27,7 +27,7 @@ import View from './View/View'; import invariant from 'invariant'; import * as React from 'react'; -type ButtonProps = $ReadOnly<{ +export type ButtonProps = $ReadOnly<{ /** Text to display inside the button. On Android the given title will be converted to the uppercased form. diff --git a/scripts/build/build-types/buildTypes.js b/scripts/build/build-types/buildTypes.js index e31edd2a5c99ae..6dcf37255af259 100644 --- a/scripts/build/build-types/buildTypes.js +++ b/scripts/build/build-types/buildTypes.js @@ -38,6 +38,7 @@ const ENTRY_POINTS = [ 'packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js', 'packages/react-native/Libraries/Components/Clipboard/Clipboard.js', 'packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js', + 'packages/react-native/Libraries/Components/Button.js', 'packages/react-native/Libraries/EventEmitter/NativeEventEmitter.js', 'packages/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js', 'packages/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js',