0.1.5 • Published 8 months ago

@premarket/mobile-sdk v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

@premarket/mobile-sdk

SDK cho các ứng dụng React Native/Expo sử dụng WhalesMarket.

Cài đặt

pnpm add @premarket/mobile-sdk

Sử 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>
  );
}
0.1.5

8 months ago

0.1.4

8 months ago