Expo React原生取奇怪的行为

时间:2017-12-03 18:43:16

标签: javascript react-native google-api fetch expo

我目前正在使用React Native with Expo作为应用程序。我使用Google帐户登录,并尝试使用Google的API获取有关用户的一些信息。我为此使用“fetch”,但它根本不起作用,甚至不打印错误。我为“fetch”写了一个错误的链接,但仍然没有抛出错误。我正在使用Expo远程运行我的设备上的代码。这是代码:

    [HttpGet]
    [EnableBreezeQuery]
    public User UserOderSet(Guid guid)
    {                        
        User user = _efContext.Context.UserSet.Where(u => u.guid == guid).Single();
        List<Order> orders = _efContext.Context.OrderSet.Where(o => o.user_guid == guid && o.active).ToList();

        return user;
    }

0 个答案:

没有答案
相关问题