Stop unnecessarily spreading ReactNativeViewViewConfig

Summary:
There's no need to spread ReactNativeViewViewConfig props into ViewConfig partials ourselves. createViewConfig does this for us:

https://www.internalfb.com/code/fbsource/[b319a947b3e5]/xplat/js/react-native-github/Libraries/NativeComponent/ViewConfig.js?lines=20-50

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D32187833

fbshipit-source-id: 6d7ea3fc808ccfc98e067f8f52334f7b3417d7a7
This commit is contained in:
Ramanpreet Nara 2021-11-09 00:27:31 -08:00 коммит произвёл Facebook GitHub Bot
Родитель d29a6a116e
Коммит f1f88b02e8
2 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -8,7 +8,6 @@
* @format * @format
*/ */
import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig';
import type {PartialViewConfig} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes'; import type {PartialViewConfig} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
const AndroidTextInputViewConfig = { const AndroidTextInputViewConfig = {
@ -53,8 +52,6 @@ const AndroidTextInputViewConfig = {
}, },
directEventTypes: {}, directEventTypes: {},
validAttributes: { validAttributes: {
...ReactNativeViewViewConfig.validAttributes,
maxFontSizeMultiplier: true, maxFontSizeMultiplier: true,
adjustsFontSizeToFit: true, adjustsFontSizeToFit: true,
minimumFontScale: true, minimumFontScale: true,

Просмотреть файл

@ -9,7 +9,6 @@
*/ */
import type {PartialViewConfig} from '../../Renderer/shims/ReactNativeTypes'; import type {PartialViewConfig} from '../../Renderer/shims/ReactNativeTypes';
import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig';
const RCTTextInputViewConfig = { const RCTTextInputViewConfig = {
uiViewClassName: 'RCTSinglelineTextInputView', uiViewClassName: 'RCTSinglelineTextInputView',
@ -72,7 +71,6 @@ const RCTTextInputViewConfig = {
}, },
directEventTypes: {}, directEventTypes: {},
validAttributes: { validAttributes: {
...ReactNativeViewViewConfig.validAttributes,
fontSize: true, fontSize: true,
fontWeight: true, fontWeight: true,
fontVariant: true, fontVariant: true,