When testing your app, you may encounter the situation where the client screen doesn’t match what you see on the server screen. To debug this problem, you need to record the JSON object sent from the server to the client.
Here’s an example to get you started. To learn more about recording, see Using the Cloud Recorder.
Open the server screen.
Open the Dev Panel.
Select Cloud Recorder to turn on recording.
Select React Native Reload, then Full Reload (to force the server to send a full screen update to the client).
Open recording0.json
in a text editor.
You can find that file in the app root folder (<project>/recording<n>.json>
).
Locate the last loadJSON
command.
In the arguments
node, locate the first text
property.
The string reads “Welcome to your first You I React Native app!”
Open index.youi.js
in a text editor.
Change “Welcome to your first You I React Native app!” to “Hello World!!!” and save the changes.
Observe that the changed text is now shown on both the server screen and the client screen.
Re-open recording0.json
in a text editor and find the last loadJSON
command.
In the arguments
node, locate the first text
property.
The string which follows is “Hello World!!!”
No results yet. Please begin typing a keyword to search the You.i TV Developer Portal...
Try to search with a different keyword or remove search filters.