我在 React-native 项目中使用 react-native-simple-auth 。 Google-web 工作正常,但我在twitter上面临问题。 我收到以下错误
没有注册处理Twitter请求的类。在使用params在目标SimpleAuthWrapper上调用授权时抛出( 推特, 37 )
我也面临构建问题抛出此错误
如果我取消选中SimpleAuth构建的目标成员资格是成功的,但是twitter oauth无效。
这是我的pod文件
productsData = [];
//random id for this example - you can generate those however you like of course
productId = 112;
//you add the new product with given id...but you don't know how big the array was before
productsData.push({productId:productId})
//now you set a size
productSize = 33;
//you search for the product with given ID in the array to be able to add the size value to it
//the method "arrayObjectIndexOf" I just copied from an answer here:
//http://stackoverflow.com/questions/8668174/indexof-method-in-an-object-array
var searchIndex = arrayObjectIndexOf(productsData, productId, "productId");
//now in the first brackets you get inside the object and in the second you create a new property "productSize"and set its value
productsData[searchIndex]["productSize"] = productSize;
alert(productsData[searchIndex].productSize);
function arrayObjectIndexOf(myArray, searchTerm, property) {
for(var i = 0, len = myArray.length; i < len; i++) {
if (myArray[i][property] === searchTerm) return i;
}
return -1;
}
请任何人帮助我。
答案 0 :(得分:0)
要解决上述问题,我们需要将标题搜索路径设置为$(PODROOT), 然后就会解决