draftbit / twitter-lite

A tiny, full-featured, flexible client / server library for the Twitter API
https://npm.im/twitter-lite
MIT License
794 stars 95 forks source link

ReferenceError: Property 'Buffer' doesn't exist #207

Open ycdaskin opened 1 year ago

ycdaskin commented 1 year ago

Whichever method I use, I get this error. My react native version is 0.71.6

This is my example code:

const client = new Twitter({
        consumer_key: "my consumer key",
        consumer_secret: "my secret"
    })

client.getRequestToken("my callback url").then(response => {
            console.log(response)
        }).catch(err => console.log(err))

i installed all dependencies but no chance.