Browse Source

Add missing file

Options.java was missing from previous commit
Guy Carmeli 6 years ago
parent
commit
86f7fc00fe

+ 7
- 0
lib/android/app/src/main/java/com/reactnativenavigation/parse/Options.java View File

@@ -5,6 +5,8 @@ import android.support.annotation.NonNull;
5 5
 
6 6
 import com.reactnativenavigation.parse.params.Color;
7 7
 import com.reactnativenavigation.parse.params.NullColor;
8
+import com.reactnativenavigation.parse.params.NullNumber;
9
+import com.reactnativenavigation.parse.params.NullText;
8 10
 import com.reactnativenavigation.parse.parsers.ColorParser;
9 11
 import com.reactnativenavigation.utils.TypefaceLoader;
10 12
 
@@ -144,4 +146,9 @@ public class Options {
144 146
         fabOptions = new FabOptions();
145 147
         return this;
146 148
     }
149
+
150
+    public void clearOneTimeOptions() {
151
+        bottomTabsOptions.currentTabId = new NullText();
152
+        bottomTabsOptions.currentTabIndex = new NullNumber();
153
+    }
147 154
 }