I want to do is iI want to import react nativeReact-Native dynamic path.
example :- import Demo from ./screens/${path};
import Demo from `./screens/${path}`; currently iI found one method using lazy.but, but it also only working when inisializeinitialize const variable like this
const demo = 'Path'; let componentPath = `../Screen/${demo}`; const DynamicComponent = React.lazy(() => import(componentPath).then(module => ({default: module.screenm})), ); const demo = 'Path'; let componentPath = `../Screen/${demo}`; const DynamicComponent = React.lazy(() => import(componentPath) .then(module => ({ default: module.screen })), ); iI want to get path by async storage saved variable., not like hard code variable.when i When I hard code variable and it works., but iI could not be able to get it formfrom async storage. iI have trytried to find method to do it . but i could not be able to do it. is there any method to do it.