Skip to content

Commit 655c814

Browse files
authored
Create a view manager instead of a native module (#39)
1 parent 379eb3d commit 655c814

File tree

5 files changed

+7
-27
lines changed

5 files changed

+7
-27
lines changed

android/src/main/java/com/reactnativecommunity/androidprogressbar/ProgressBarContainerView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This source code is licensed under the MIT license found in the
44
// LICENSE file in the root directory of this source tree.
55

6-
package com.reactnativecommunity.progressbar;
6+
package com.reactnativecommunity.androidprogressbar;
77

88
import javax.annotation.Nullable;
99

android/src/main/java/com/reactnativecommunity/androidprogressbar/ProgressBarShadowNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.reactnativecommunity.progressbar;
8+
package com.reactnativecommunity.androidprogressbar;
99

1010
import android.util.SparseIntArray;
1111
import android.view.View;

android/src/main/java/com/reactnativecommunity/androidprogressbar/RNCProgressBarModule.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

android/src/main/java/com/reactnativecommunity/androidprogressbar/RNCProgressBarPackage.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
public class RNCProgressBarPackage implements ReactPackage {
1515
@Override
1616
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
17-
return Arrays.<NativeModule>asList(new RNCProgressBarModule(reactContext));
17+
return Collections.emptyList();
1818
}
1919

2020
// Deprecated from RN 0.47
2121
public List<Class<? extends JavaScriptModule>> createJSModules() {
2222
return Collections.emptyList();
2323
}
2424

25-
@Override
25+
@Override
26+
@SuppressWarnings("rawtypes")
2627
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
27-
return Collections.emptyList();
28+
return Arrays.<ViewManager>asList(new ReactProgressBarViewManager());
2829
}
2930
}

android/src/main/java/com/reactnativecommunity/androidprogressbar/ReactProgressBarViewManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.reactnativecommunity.progressbar;
8+
package com.reactnativecommunity.androidprogressbar;
99

1010
import javax.annotation.Nullable;
1111

0 commit comments

Comments
 (0)