0.7.1 • Published 8 months ago

react-native-doateam v0.7.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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>
0.7.1

8 months ago

0.7.0

8 months ago

0.6.5

10 months ago

0.6.0

10 months ago

0.5.8

10 months ago

0.5.6

10 months ago

0.5.1

10 months ago

0.3.2

10 months ago

0.3.0

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.0

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago