Cleaning console.log
This commit is contained in:
@@ -17,7 +17,7 @@ let NewPostView = (props) => {
|
||||
const navigation = useNavigation();
|
||||
|
||||
useEffect(() => {
|
||||
console.log(props)
|
||||
//console.log(props)
|
||||
let subscribed = true;
|
||||
const getProfileData = async () => {
|
||||
if (!props.route.params?.toProfile) return 0;
|
||||
|
||||
@@ -25,12 +25,14 @@ let Post = (props) => {
|
||||
let usersStrings = post.content.match(/@[A-z]+:.+\w/g);
|
||||
let userIds = [];
|
||||
let usersProfileCars = [];
|
||||
usersStrings.forEach((userString)=>{
|
||||
userIds.push(userString.split(':')[1]);
|
||||
usersProfileCars.push(
|
||||
<ProfileVertical profileid={userString.split(':')[1]} skipFollow={true}/>
|
||||
);
|
||||
});
|
||||
if(usersStrings){
|
||||
usersStrings.forEach((userString)=>{
|
||||
userIds.push(userString.split(':')[1]);
|
||||
usersProfileCars.push(
|
||||
<ProfileVertical profileid={userString.split(':')[1]} skipFollow={true}/>
|
||||
);
|
||||
});
|
||||
}
|
||||
let renderPost = (obj) => {
|
||||
return <ProfileVertical profileid={obj.item} />
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
|
||||
if (f.rendition === 'adaptive') chosenVideo.push(f);
|
||||
});
|
||||
if(videoUrl) chosenVideo.push({link: videoUrl});
|
||||
console.log(chosenVideo);
|
||||
//console.log(chosenVideo);
|
||||
setChosenVideo(chosenVideo);
|
||||
}, [videoUrl, postId]);
|
||||
|
||||
const onLoad = async ()=>{
|
||||
if(!viewer.data[postId]) return 0;
|
||||
console.log(postId + " loaded")
|
||||
//console.log(postId + " loaded")
|
||||
await video.current.setPositionAsync(viewer.data[postId].time*1000);
|
||||
//video.current.isPlaying = true;
|
||||
//video.current.presentFullscreenPlayer();
|
||||
@@ -43,7 +43,7 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
|
||||
postId: postId,
|
||||
profileId: profileId,
|
||||
};
|
||||
console.log(postId, newData);
|
||||
//console.log(postId, newData);
|
||||
API.setDataValue(postId, newData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user