mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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
33 lines
650 B
JavaScript
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>
|
|
);
|
|
};
|