Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async-storage 패키지 추가 #229

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.facebook.react.ReactPackage
import com.facebook.react.bridge.JavaScriptExecutorFactory
import com.facebook.react.shell.MainReactPackage
import com.horcrux.svg.SvgPackage
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage
import com.reactnativecommunity.picker.RNCPickerPackage
import com.swmansion.gesturehandler.RNGestureHandlerPackage
import com.swmansion.reanimated.ReanimatedPackage
Expand Down Expand Up @@ -48,6 +49,7 @@ class SNUTTApplication : Application(), ReactApplication {
SafeAreaContextPackage(),
ReanimatedPackage(),
SvgPackage(),
AsyncStoragePackage(),
)

override fun getJSMainModuleName(): String = "friends"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.facebook.react.ReactRootView
import com.facebook.react.common.LifecycleState
import com.facebook.react.shell.MainReactPackage
import com.horcrux.svg.SvgPackage
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage
import com.reactnativecommunity.picker.RNCPickerPackage
import com.swmansion.gesturehandler.RNGestureHandlerPackage
import com.swmansion.reanimated.ReanimatedPackage
Expand Down Expand Up @@ -69,7 +70,7 @@ class ReactNativeBundleManager @Inject constructor(
.setJavaScriptExecutorFactory(HermesExecutorFactory())
.setJSBundleFile(bundleFile.absolutePath)
.addPackages(
listOf(MainReactPackage(), RNGestureHandlerPackage(), ReanimatedPackage(), SafeAreaContextPackage(), RNCPickerPackage(), SvgPackage()),
listOf(MainReactPackage(), RNGestureHandlerPackage(), ReanimatedPackage(), SafeAreaContextPackage(), RNCPickerPackage(), SvgPackage(), AsyncStoragePackage()),
)
.setInitialLifecycleState(LifecycleState.RESUMED)
.build()
Expand All @@ -84,6 +85,7 @@ class ReactNativeBundleManager @Inject constructor(
putString("x-access-apikey", context.getString(R.string.api_key))
putString("theme", if (isDarkMode(activityContext, theme)) "dark" else "light")
putBoolean("allowFontScaling", true)
putStringArrayList("feature", arrayListOf("ASYNC_STORAGE"))
},
)
}
Expand Down
Binary file not shown.
Loading