mobileapps

  • 100
Posts
Posts' Comments
Discussions
Forum's Comments
  • To make PUSH working you need to open OneSignal account then setup it properly for Web Browsers, Android and iOS[if needed] in OneSignal - then have necessary instructions on how to do it. Then specify OneSignal App ID in UNA and mobile apps.

    Also you can refer to more detailed description by Mosi76
    https://una.io/cmts.php?sys=bx_forum&id=4009&cmt_id=16180

    • The code for this button is in mobile app App.js file:

      <Button vertical onPress={this.onMessengerMenu.bind(this)} badge={this.state.data.bubbles['notifications-messenger'] > 0 ? true : false}>
          {this.state.data.bubbles['notifications-messenger'] > 0 && 
              (<Badge><Text>{this.state.data.bubbles['notifications-messenger']}</Text></Badge>)
          }
          <Icon name="comments" type="FontAwesome5" solid />
      </Button>

      To change it to your own you can replace it with this:

      <Button vertical onPress={() => this.injectJavaScript(`window.location = '${BASE_URL}page/privacy';`)}>
          <Icon name="car" type="FontAwesome5" solid />
      </Button>

      Just change, page/privacy URL and car icon to your own, icon name can be any icon from FontAwesome5 set:
      https://oblador.github.io/react-native-vector-icons/

      r00nster added a discussion to , mobileapps

      I'm trying to get the native MobileApp running.

      I've completed all the steps but when I build/run the app in the simulator it stalls at the splash screen and goes no further.

      The build completes with no errors (only 4 warnings).

      Any idea anyone?

      image_transcoder.php?o=bx_froala_image&h=2543&dpx=2&t=1574882183

      cnayl added a discussion to , mobileapps

      I'm working through the updated files for mobile app and I can get it working fine with react-native run-android but when  I try and load the project into Android Studio it then gives an error:

      Script '/home/cnayl/Android/una-mobile-app-[1.3.0]/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 191

      * What went wrong:
      A problem occurred evaluating settings 'una'.
      > Text must not be null or empty

      I tried using the code as is and it ran fine to give the UNA app but gives this error when trying to load into studio?


      1
      Expertzkris added a discussion to , mobileapps

      These bars are part of react-native, so you need to customize it in mobile apps source code App.js file.

      Change this code:

        renderToolbar () {

                   return (

                       <Header>



      to



        renderToolbar () {

                   return (

                      <Header style={{backgroundColor:'yourcolor'}}>




      Similar approach should work for footer. Also you can add style class and change more design styles, refer to documentation on how to add style sheets



      Credit to :  Alex T  



      3
      2
      ... or jump to: 2019