Relative Content

Tag Archive for javascriptreact-nativefunctionobject

my function that returns an object of methods keeps returning undefined (react-native)

while trying to make a document editor like word (it’s a very basic editor) I tried to use classes but what I wanted didn’t work and so I created a big function that returns 2 variables and a method for printing to the screen, cause the other are used to getting the raw text and if it was deleted, these are returned as an objects, the goal is to print every instance of a TextInput that the user creates and so I put the returned objects in a list that is to be printed for the user to edit text and other stuff, with all being said the only problem is that it returns undefined even for hardcoded value while debugging I saw that the only returned values are functions that have no methods what so ever, even though it should return objects.
Here is the main page code, with the list of objects that should be printed: