Build: Native Module Mock Demo
This screen demonstrates how to mock a native module in React Native for testing purposes. It shows a button to fetch device info using a native module and displays the result.
Target UI
------------------------- | Native Module Mock Demo | |-----------------------| | Device Info: | | [Not fetched yet] | | | | [Fetch Device Info] | -------------------------
Create a button labeled 'Fetch Device Info'.
When pressed, call a mocked native module method to get device info.
Display the returned device info text below the label 'Device Info:'.
Use React Native's NativeModules to mock the native module.
Ensure the UI updates with the mocked data after button press.