forked from callstack/react-native-pager-view
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Trocki
committed
Sep 13, 2022
1 parent
3517160
commit fcbc131
Showing
141 changed files
with
9,780 additions
and
15,649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,4 @@ lib/ | |
|
||
#e2e | ||
test-butler-app.apk | ||
example/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
PagerView_kotlinVersion=1.5.30 | ||
PagerView_compileSdkVersion=30 | ||
PagerView_buildToolsVersion=30.0.2 | ||
PagerView_targetSdkVersion=30 | ||
PagerView_kotlinVersion=1.7.0 | ||
PagerView_minSdkVersion=21 | ||
PagerView_targetSdkVersion=31 | ||
PagerView_compileSdkVersion=31 | ||
PagerView_ndkversion=21.4.7075529 |
61 changes: 61 additions & 0 deletions
61
android/src/legacy/com/reactnativepagerview/PagerViewViewManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.reactnativepagerview; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
|
||
import com.facebook.react.bridge.ReadableArray; | ||
import com.facebook.react.common.MapBuilder; | ||
import com.facebook.react.uimanager.SimpleViewManager; | ||
import com.facebook.react.uimanager.ThemedReactContext; | ||
import com.facebook.react.uimanager.annotations.ReactProp; | ||
import com.facebook.react.bridge.ReactApplicationContext; | ||
|
||
import java.util.Map; | ||
|
||
|
||
public class PagerViewViewManager extends SimpleViewManager<PagerViewView> { | ||
|
||
ReactApplicationContext mCallerContext; | ||
|
||
public PagerViewViewManager(ReactApplicationContext reactContext) { | ||
mCallerContext = reactContext; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return PagerViewViewManagerImpl.NAME; | ||
} | ||
|
||
@Override | ||
public PagerViewView createViewInstance(ThemedReactContext context) { | ||
return PagerViewViewManagerImpl.createViewInstance(context); | ||
} | ||
|
||
@Override | ||
public Map<String, Integer> getCommandsMap() { | ||
return MapBuilder.of("changeBackgroundColor", 1); | ||
} | ||
|
||
@Override | ||
public void receiveCommand( | ||
@NonNull PagerViewView view, | ||
String commandId, | ||
@Nullable ReadableArray args | ||
) { | ||
super.receiveCommand(view, commandId, args); | ||
String color = args.getString(0); | ||
|
||
switch (commandId) { | ||
case "changeBackgroundColor": | ||
setColor(view, color); | ||
break; | ||
default: {} | ||
} | ||
} | ||
|
||
|
||
@ReactProp(name = "color") | ||
public void setColor(PagerViewView view, String color) { | ||
PagerViewViewManagerImpl.setColor(view, color); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
97 changes: 0 additions & 97 deletions
97
android/src/main/java/com/reactnativepagerview/NestedScrollableHost.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.