Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-device-info-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Bu adımlardan sonra, paketiniz npm üzerinden yüklenebilir hale gelecektir. Başka bir projede bu bileşeni kullanmak için şu komutu kullanabilirsiniz:
bash Kodu kopyala
npm install react-native-device-info-componentArdından, bileşeni projenize şu şekilde dahil edebilirsiniz:
javascript Kodu kopyala
import React from 'react';
import { SafeAreaView } from 'react-native';
import DeviceInfoComponent from 'react-native-device-info-component';
const App = () => {
return (
<SafeAreaView>
<DeviceInfoComponent />
</SafeAreaView>
);
};
export default App;