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
eventTypeto 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