11
11
import com .facebook .react .bridge .ReactContext ;
12
12
import com .facebook .react .bridge .ReadableArray ;
13
13
14
+ import com .google .firebase .database .DatabaseReference ;
14
15
import com .google .firebase .database .Query ;
15
16
import com .google .firebase .database .DataSnapshot ;
16
17
import com .google .firebase .database .DatabaseError ;
@@ -151,7 +152,7 @@ public void cleanup() {
151
152
152
153
public void removeChildEventListener () {
153
154
if (mEventListener != null ) {
154
- com . google . firebase . database . DatabaseReference ref = this .getDatabaseRef ();
155
+ DatabaseReference ref = this .getDatabaseRef ();
155
156
ref .removeEventListener (mEventListener );
156
157
//this.notListeningTo(mPath, "child_added");
157
158
//this.notListeningTo(mPath, "child_changed");
@@ -162,7 +163,7 @@ public void removeChildEventListener() {
162
163
}
163
164
164
165
public void removeValueEventListener () {
165
- com . google . firebase . database . DatabaseReference ref = this .getDatabaseRef ();
166
+ DatabaseReference ref = this .getDatabaseRef ();
166
167
if (mValueListener != null ) {
167
168
ref .removeEventListener (mValueListener );
168
169
//this.notListeningTo(mPath, "value");
@@ -202,12 +203,12 @@ private void handleDatabaseError(final String name, final String path, final Dat
202
203
Utils .sendEvent (mReactContext , "database_error" , evt );
203
204
}
204
205
205
- public com . google . firebase . database . DatabaseReference getDatabaseRef () {
206
+ public DatabaseReference getDatabaseRef () {
206
207
return FirebaseDatabase .getInstance ().getReference (mPath );
207
208
}
208
209
209
210
private Query getDatabaseQueryAtPathAndModifiers (final ReadableArray modifiers ) {
210
- com . google . firebase . database . DatabaseReference ref = this .getDatabaseRef ();
211
+ DatabaseReference ref = this .getDatabaseRef ();
211
212
212
213
List <Object > strModifiers = Utils .recursivelyDeconstructReadableArray (modifiers );
213
214
ListIterator <Object > it = strModifiers .listIterator ();
0 commit comments