Files
react-native/Libraries/LogBox/__tests__/__fixtures__/ReactWarningFixtures.js
T
Tim Yung 7c08d07115 RN: Change Internal Imports to Relative Paths
Summary:
Fixes all internal import statements directly referencing the `react-native` package to instead use relative paths.

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D39831223

fbshipit-source-id: 510123e5fc8f6845f96d1b55c67e0e59cb401beb
2022-09-27 09:22:58 -07:00

33 lines
650 B
JavaScript

/**
* 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
* @oncall react_native
*/
import Text from '../../../Text/Text';
import * as React from 'react';
export const DoesNotUseKey = () => {
return (
<>
{['foo', 'bar'].map(item => (
<Text>{item}</Text>
))}
</>
);
};
export const FragmentWithProp = () => {
return (
<React.Fragment invalid="prop">
{['foo', 'bar'].map(item => (
<Text key={item}>{item}</Text>
))}
</React.Fragment>
);
};