Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 826 Bytes

File metadata and controls

27 lines (18 loc) · 826 Bytes

DHISChatApp

React Native XMPP chat application (Android only) for DHIS 2 using a custom Openfire server.

To run the app:

  • Clone the repo and use npm to install node_modules: npm install

  • Then, locate this file:

node_modules/react-native-photo-view/android/src/main/java/com/reactnative/photoview/ImageEvent.java

  • And add eventType to the code, as shown below:
public ImageEvent(int viewId, @ImageEventType int eventType) {
      super(viewId, eventType); //<-- Add eventType
      mEventType = eventType;
      mMap = null;
}
  • Clone, build and start the Openfire server. It can be found here.

  • Change URL's in app to match your setup.

  • Start android emulator and run react-native run-android