Thanks for your quick answer, however I would have to access myTabBar from different .lua file and I am not quite sure how do I do it.
(My create code for tabBar is in “main.lua” and I want for example “view3” with hidden tabBar.
I tried to figure it out and made a new project to understand how it works, following this. I still cant understand this part:
–my global space
local M = {}
return M
Do i fill M{} with variables I want to share in future? something like this:
or not?
local M = {myVariable = 0} return M --different .lua file local myData = require ("main") myData.myVariable = 10
I always get an error: <eof> expected near display or anything like that. Even if I keep it without {myVariable}.
I think that this question seriously belongs to “newbie questions”.
I would be really glad if somebody could explain to me how do I make it actually work. Thanks!