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.