SimCoderYoutube / InstagramClone

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!
Apache License 2.0
745 stars 294 forks source link

Camera flip function doesn't work #14

Closed ashercarson closed 3 years ago

ashercarson commented 3 years ago

From Add.js

Everything works good. exception the flip feature.

when I set the camera flip function to TouchableOpacity. It works as well. but if I change from TouchableOpacity to Button, it doesn't work to flip the camera.

I double checked the code by copy and paste your code. but it still doesn't work

SimCoderYoutube commented 3 years ago

Hi!

Does any error log appear when you click the button?

ashercarson commented 3 years ago

Nope error message doesn't appear

SimCoderYoutube commented 3 years ago

Alright, Could you please let me know what device you are testing this on? When you set the type variable to Camera.Constants.Type.front does it automatically set the camera to the front camera?

like so: const [type, setType] = useState(Camera.Constants.Type.front);