React-native-camera: How can I increase the speed of the render to react native camera?

Created on 27 Aug 2017  路  3Comments  路  Source: react-native-camera/react-native-camera

I use the react navigation module for routing, when I go to screen of module react native camera fps drops to 2, but when the module is loaded, fps 60. How to solve this problem?
THANKS
IT IS VERY IMPORTANT !!

Most helpful comment

The only real ways to somewhat solve it that I know of are to either, a) preload the component you're switching to and then show the camera with a state toggle, or b) get faster hardware.

Initialising the camera (whether it's the native camera built into the OS or through an abstracted layer like RN with this library) is inherently expensive and will consume a lot of your resources.

Also, sidenote: ALL-CAPS and exclamation marks make it much less likely for people to want to help you. Especially when you already have an existing issue for the problem mentioned on the repo you're asking on.

All 3 comments

The only real ways to somewhat solve it that I know of are to either, a) preload the component you're switching to and then show the camera with a state toggle, or b) get faster hardware.

Initialising the camera (whether it's the native camera built into the OS or through an abstracted layer like RN with this library) is inherently expensive and will consume a lot of your resources.

Also, sidenote: ALL-CAPS and exclamation marks make it much less likely for people to want to help you. Especially when you already have an existing issue for the problem mentioned on the repo you're asking on.

@adjustit could you elaborate more on how to preload a component? i've searched a bit on google but havent found anything

Please open a new issue if you are still experiencing these issues with the newest version of RNCamera.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anotherstarburst picture anotherstarburst  路  3Comments

ghost picture ghost  路  3Comments

chen2584 picture chen2584  路  3Comments

aforty picture aforty  路  3Comments

maxschmeling picture maxschmeling  路  3Comments