React Native ਦੀ ਕਾਰਗੁਜ਼ਾਰੀ ਨੂੰ ਅਨੁਕੂਲ ਬਣਾਉਣਾ ਗੈਰ-ਜ਼ਰੂਰੀ re-renders ਨੂੰ ਘੱਟ ਕਰਨਾ, ਪ੍ਰਭਾਵੀ ਸੂਚੀਆਂ, JS-thread ਕੰਮ ਅਤੇ bridge ਟ੍ਰੈਫਿਕ ਨੂੰ ਘੱਟ ਕਰਨਾ, ਚਿੱਤਰਾਂ ਨੂੰ ਅਨੁਕੂਲ ਬਣਾਉਣਾ, ਅਤੇ ਐਨੀਮੇਸ਼ਨਾਂ ਲਈ native thread ਦੀ ਵਰਤੋਂ ਕਰਨਾ ਸ਼ਾਮਲ ਹੈ। ਕਾਰਗੁਜ਼ਾਰੀ ਨਿਰਵਿਘਨ, ਪ੍ਰਤੀਕਿਰਿਆਸ਼ੀਲ ਐਪਸ ਲਈ ਮਹੱਤਵਪੂਰਨ ਹੈ।
Re-renders ਨੂੰ ਘੱਟ ਕਰੋ (ਇੱਕ ਮੁੱਖ React ਚਿੰਤਾ)
✓ Avoid unnecessary RE-RENDERS:
→ React.memo (memoize components), useMemo (values), useCallback (functions)
→ correct, stable KEYS in lists; avoid creating new objects/functions inline that
cause children to re-render
→ proper state structure (don't put everything in one big state that re-renders all)
