Instagram Clone React Native Tutorial 2021 👨💻 I'll show you how you can do this in the simplest way and terms possible. By the end of this series you'll have learned how the big companies do it and will be able to do the same, you not only will be able to do this app, but you'll be able to put what you learn into your very own projects! In this series, we use React Native with Expo to quickly deploy the project. We use firebase for all our microservice needs like the auth system, database, storage, amongst others. firebase, redux, react native, javascript, expo. In this series, we'll use all of them and you'll learn them by doing an iconic app. Welcome to this Simcoder project and make an Instagram Clone!
`export function fetchUsersData(uid, getPosts) { return (dispatch, getState) => { const found = getState().usersState.users.some(el => el.uid === uid); if (!found) { firebase .firestore() .collection('Users') .doc(uid) .get() .then(snapshot => { if (snapshot.exists) { let user = snapshot.data(); user.uid = snapshot.id;
}; }
export function fetchUsersFollowingPosts(uid) { return (dispatch, getState) => { firebase .firestore() .collection('posts') .doc(uid) .collection('uploads') .orderBy('creation', 'asc') .get() .then(snapshot => { const uid = snapshot.docs[0].ref.path.split('/')[1]; const user = getState().usersState.users.find(el => el.uid === uid);
}; }`
ERROR TypeError: relativePath.split is not a function (it is undefined), js engine: hermes can you guide me about this error?