aerostack-sdk
v0.6.6
Published
Aerostack SDK for React Native
Readme
@aerostack/sdk-react-native
The official React Native SDK for Aerostack. Compatible with Expo and bare React Native projects.
Installation
npm install @aerostack/sdk-react-native
# or
yarn add @aerostack/sdk-react-nativeNote: This SDK uses standard fetch and web-compatible APIs, so it requires no native linking in Expo managed workflows.
Usage
Initialization
import { Aerostack } from '@aerostack/sdk-react-native';
const client = new Aerostack({
projectUrl: 'https://your-project.aerostack.dev',
apiKey: 'your-public-api-key',
});Authentication
try {
const session = await client.auth.signIn({
email: '[email protected]',
password: 'password123'
});
console.log('Logged in:', session.user.id);
} catch (error) {
console.error('Login failed:', error);
}Database
// Fetch data
const users = await client.db.query('SELECT * FROM users LIMIT 5');Documentation
For full documentation, visit docs.aerostack.dev.
