Cleaning console.log

This commit is contained in:
Adolfo Reyna
2023-10-23 20:08:28 -04:00
parent d4410c5715
commit dc52f57424
3 changed files with 12 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ let NewPostView = (props) => {
const navigation = useNavigation(); const navigation = useNavigation();
useEffect(() => { useEffect(() => {
console.log(props) //console.log(props)
let subscribed = true; let subscribed = true;
const getProfileData = async () => { const getProfileData = async () => {
if (!props.route.params?.toProfile) return 0; if (!props.route.params?.toProfile) return 0;

View File

@@ -25,12 +25,14 @@ let Post = (props) => {
let usersStrings = post.content.match(/@[A-z]+:.+\w/g); let usersStrings = post.content.match(/@[A-z]+:.+\w/g);
let userIds = []; let userIds = [];
let usersProfileCars = []; let usersProfileCars = [];
if(usersStrings){
usersStrings.forEach((userString)=>{ usersStrings.forEach((userString)=>{
userIds.push(userString.split(':')[1]); userIds.push(userString.split(':')[1]);
usersProfileCars.push( usersProfileCars.push(
<ProfileVertical profileid={userString.split(':')[1]} skipFollow={true}/> <ProfileVertical profileid={userString.split(':')[1]} skipFollow={true}/>
); );
}); });
}
let renderPost = (obj) => { let renderPost = (obj) => {
return <ProfileVertical profileid={obj.item} /> return <ProfileVertical profileid={obj.item} />
} }

View File

@@ -20,13 +20,13 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
if (f.rendition === 'adaptive') chosenVideo.push(f); if (f.rendition === 'adaptive') chosenVideo.push(f);
}); });
if(videoUrl) chosenVideo.push({link: videoUrl}); if(videoUrl) chosenVideo.push({link: videoUrl});
console.log(chosenVideo); //console.log(chosenVideo);
setChosenVideo(chosenVideo); setChosenVideo(chosenVideo);
}, [videoUrl, postId]); }, [videoUrl, postId]);
const onLoad = async ()=>{ const onLoad = async ()=>{
if(!viewer.data[postId]) return 0; if(!viewer.data[postId]) return 0;
console.log(postId + " loaded") //console.log(postId + " loaded")
await video.current.setPositionAsync(viewer.data[postId].time*1000); await video.current.setPositionAsync(viewer.data[postId].time*1000);
//video.current.isPlaying = true; //video.current.isPlaying = true;
//video.current.presentFullscreenPlayer(); //video.current.presentFullscreenPlayer();
@@ -43,7 +43,7 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
postId: postId, postId: postId,
profileId: profileId, profileId: profileId,
}; };
console.log(postId, newData); //console.log(postId, newData);
API.setDataValue(postId, newData); API.setDataValue(postId, newData);
} }