@react-native-ohos/flash-list
Version:
FlashList is a more performant FlatList replacement
36 lines • 2.32 kB
JavaScript
;
/**
* MIT License
*
* Copyright (C) 2024 Huawei Device Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var WarningList = {
styleUnsupported: "You have passed a style to FlashList. This list doesn't support styling, use contentContainerStyle or wrap the list in a parent and apply style to it instead.",
styleContentContainerUnsupported: "FlashList only supports padding related props and backgroundColor in contentContainerStyle. Please remove other values as they're not used.",
unusableRenderedSize: "FlashList's rendered size is not usable. Either the height or width is too small (<2px). " +
"Please make sure that the parent view of the list has a valid size. FlashList will match the size of the parent.",
missingKeyExtractor: "FlashList requires a keyExtractor prop to be defined when animating elements. Without it, the animations will not run as expected.",
estimatedItemSizeMissingWarning: "estimatedItemSize FlashList prop is not defined - based on current configuration you can set it to @size to optimize list performance. " +
"Refer to FlashList documentation for more details.",
};
exports.default = WarningList;
//# sourceMappingURL=Warnings.js.map