Skip to content

v1.5.1

Compare
Choose a tag to compare
@wpdas wpdas released this 06 Sep 02:27
· 28 commits to main since this release
d7ee7f5
  • Live tests;
  • Storage API - Fixed bug where sometimes values were not being persisted (Storage.set & Storage.privateSet);
  • Social API - Fixed bug where sometimes calls were not completing (Social.get, Social.getr, Social.keys & Social.index);
  • Fixed error in the Navigator component where the autoHeightSync property was being statically set to true;
  • Screen.navigation, useNavigation() updated. It is now possible to call the replace function which will clear the current history by pointing the route to the new passed route value;
  • Navigator has a new property called defaultRoute. If you use Navigator with defaultRoute, this route is going to be set every time the app reloads. If not used, the last seen route is going to be shown;
return (
  <Navigator autoHeightSync defaultRoute="Home">
    <Screen name="Home" component={Home} iframeHeight={420} />
    <Screen name="Profile" component={Profile} />
  </Navigator>
)
  • Navigation history is now persisted using the Storage API;
  • createStackNavigator now needs to wait for the history of the navigation to be ready;
  • Fixed useSessionStoragehook. When used, the initial storage data was not being loaded;
  • Added Test API to say when the tests are passing;
  • NearSocialBridgeCore updated;
  • Added new API: Fetch; Regular / Vanilla Fetch API won't work while your React App is running within BOS. You need to use this feature in order to make API calls from inside the BOS.
import { fetch } from 'near-social-bridge/api'

fetch<any>('https://rpc.mainnet.near.org/status').then((response) => console.log(response))
//{ "ok":true, "status":200, "contentType":"application/json", "body":{...}}