From 86341896e61b2174dbf3faf22b8e0a9d844d458b Mon Sep 17 00:00:00 2001 From: hduprat Date: Thu, 19 May 2022 10:52:37 +0200 Subject: [PATCH] fix Flow typing As done on DrawerLayoutAndroid --- .../TextInput/__tests__/InputAccessoryView-test.js | 5 ++++- index.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Libraries/Components/TextInput/__tests__/InputAccessoryView-test.js b/Libraries/Components/TextInput/__tests__/InputAccessoryView-test.js index f1a2d643651a8c..ec8d73992f9a59 100644 --- a/Libraries/Components/TextInput/__tests__/InputAccessoryView-test.js +++ b/Libraries/Components/TextInput/__tests__/InputAccessoryView-test.js @@ -13,7 +13,10 @@ const React = require('react'); const View = require('../../View/View'); -const InputAccessoryView = require('../InputAccessoryView'); +/* $FlowFixMe[cannot-resolve-module] (>=0.99.0 site=react_native_ios_fb) This + * comment suppresses an error found when Flow v0.99 was deployed. To see the + * error, delete this comment and run Flow. */ +const InputAccessoryView = require('../InputAccessoryView.ios'); const render = require('../../../../jest/renderer'); describe('', () => { diff --git a/index.js b/index.js index d59ba3454e9cab..db2fd2a5ba6349 100644 --- a/index.js +++ b/index.js @@ -138,6 +138,7 @@ module.exports = { get ImageBackground(): ImageBackground { return require('./Libraries/Image/ImageBackground'); }, + // $FlowFixMe[value-as-type] get InputAccessoryView(): InputAccessoryView { return require('./Libraries/Components/TextInput/InputAccessoryView'); },