Native calls the method of react. What should be written on the react side so that it can be monitored by the native side?


< html lang= "en" >
< head >

<style type="text/css">
    .rpt{
        background: -sharpf4f4f4;
        padding-top: 45px;
    }
</style>
<script type="text/javascript">   //html
    function hooshineBackClick(){
        return true               //true 
    }
</script>

< / head >
< body class= "rpt" >
< div id= "app" > < / div >
< / body >
< / html >

what we want to achieve is that the front end can intercept the physical return key operation of Android and the front end controls the jump of the route and the processing of some data-sharp-sharp-sharp problem description

what I want to know is how to write this method in component and was overheard by Android. Many methods have been tried but are ineffective


if you remember correctly, you have to throw it out. It seems that if you want to write it into component, you have to throw it out one level at a time. I wrote android here, and it was the same with react before. The front end probably seems to work like this, but it's not very clear what it is.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb73a9-470ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb73a9-470ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?