0.7.1 • Published 7 months ago

react-native-doateam v0.7.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 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

7 months ago

0.7.0

7 months ago

0.6.5

9 months ago

0.6.0

9 months ago

0.5.8

9 months ago

0.5.6

9 months ago

0.5.1

9 months ago

0.3.2

9 months ago

0.3.0

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.0

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago