0.1.5 • Published 8 months ago
@premarket/mobile-sdk v0.1.5
@premarket/mobile-sdk
SDK cho các ứng dụng React Native/Expo sử dụng WhalesMarket.
Cài đặt
pnpm add @premarket/mobile-sdkSử dụng
import { WhalesMarketProvider, useWhalesMarket } from '@premarket/mobile-sdk';
function App() {
return (
<WhalesMarketProvider apiKey="your_api_key">
<YourApp />
</WhalesMarketProvider>
);
}
function YourApp() {
const { data, loading } = useWhalesMarket();
if (loading) return <Text>Loading...</Text>;
return (
<View>
{/* Sử dụng data từ WhalesMarket */}
</View>
);
}