Skip to content

[ABANDONED] API wrapper to access DynamoDB from React Native

License

Notifications You must be signed in to change notification settings

frangeris/react-native-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native DynamoDB

This library helps you access to DynamoDB from React Native, using Low-Level API. We use leimd/react-native-aws-signature for generate signatures for aws request

Installation

npm install react-native-dynamodb --save

Usage

import DynamoDB from 'react-native-dynamodb'

let dynamodb = DynamoDB.init({
    credentials: {
        AccessKeyId: '<AWS_ACCESS_KEY>',
        SecretKey: '<AWS_SECRET_KEY>'
    }
    // region: 'us-east-1' - default, optional
    // version: '20120810' - default, optional
})

dynamodb.table('pirates').PutItem(
{
    name: 'Jack Sparrow',
    age: 30,
    captain: true
},
{
    ConditionExpression: "last_movie <> :movie",
    ExpressionAttributeValues: {
        ":movie": {"S": "Pirates of the Caribbean: On Stranger Tides"}
    }
})
.then((response) => console.log(response)) // AWS object response
.catch((error) => {
    console.log(error)
})

Todo

Work in progress... API operations supported:

License

This software is licensed under the MIT License. React and React Native are BSD licensed. Facebook also provide an additional patent grant.

About

[ABANDONED] API wrapper to access DynamoDB from React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published