xgqfrms / React-Native

React Native :fire:
https://react-native.xgqfrms.xyz/
MIT License
1 stars 1 forks source link

React Native & video tutorials #1

Open xgqfrms opened 5 years ago

xgqfrms commented 5 years ago

React Native & video tutorials

https://egghead.io/courses/react-navigation-for-native-mobile-applications

https://egghead.io/courses/fundamentals-of-react-native-video

xgqfrms commented 5 years ago

Fetch API & Async Await

const fetchJSON = (url = ``) => {
    return fetch(url,
        {
            method: "GET",
            // mode: "no-cors",
            mode: "cors",
            credentials: "same-origin",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
            },
        })
        .then(res => res.json())
        .then(
            (json) => {
                return json;
            }
        )
        .catch(err => console.log(`fetch error`, err));
};

// async / await
async function getDatas(url = ``) {
    try {
        return await fetchJSON(url);
    } catch (err) {
        console.error("getDatas error:\n", err);
    }
}
xgqfrms commented 5 years ago

https://www.gitmemory.com/xgqfrms

https://devhub.io/developer/xgqfrms

xgqfrms commented 5 years ago

https://www.gitmemory.com/search?q=react%20native

xgqfrms commented 5 years ago

https://blog.coding.net/blog/react-server-rendering

https://egghead.io/search?query=react%20native https://github.com/reactnativecn/react-native-guide

https://github.com/fangwei716/30-days-of-react-native https://github.com/allenwong/30DaysofSwift https://samvlu.com/

xgqfrms commented 5 years ago

https://code.fb.com/android/react-native-bringing-modern-web-techniques-to-mobile/