I thought this would be easy but I must be doing something wrong.
I have -
[lua]
onPress = handleTabBarEvent
[/lua]
In my tabButtons options and then a function -
[lua]
local function handleTabBarEvent(event)
print(event.target.id)
return true
end
[/lua]
But all I get printed is null, I even tried setting my own id above the onPress but same.
Any ideas what am doing wrong ?
Dave