react-native-doateam
v0.7.1
Published
for DOA Team
Downloads
45
Readme
react-native-doateam
dependencies
- react-native-reanimated
- react-native-safe-area-context
ios
// AppDelegate.mm
#import <RNDOATeam.h>
- (NSURL *)bundleURL
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [RNDOATeam bundlePath]; // Change Module
#endif
}
// Info.plist
<key>OTA_PUBLIC</key>
<string>https://img.zibbang.net/bundles</string>
<!-- add line : Server Public Domain -->
android
// MainActivity.kt
import team.doa.reactnative.DOATeam
override fun onCreate(savedInstanceState: Bundle?) {
DOATeam.initApplication(this);
super.onCreate(savedInstanceState)
}
// MainApplication.kt
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
add(PedometerPackage())
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
}
override fun getJSMainModuleName(): String = "index"
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override fun getJSBundleFile(): String = DOATeam.getJSBundleFile() // Added new line
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
// res/values/strings.xml
<resources>
<string name="app_name">지갑빵빵</string>
<string name="OTA_PUBLIC">https://img.zibbang.net/bundles</string> <!-- add line : Server Public Domain -->
</resources>
// res/values/styles.xml
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
<item name="android:textColor">#000000</item>
<item name="android:windowSplashScreenIconBackgroundColor" tools:ignore="NewApi">@color/background</item>
<item name="android:windowSplashScreenBackground" tools:ignore="NewApi">@color/background</item>
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">#99000000</item>
<item name="android:enforceNavigationBarContrast" tools:targetApi="q">false</item>
<item name="android:enforceStatusBarContrast" tools:targetApi="q">false</item>
</style>